LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 07-31-2020, 06:53 PM   #1
des_a
Member
 
Registered: Sep 2006
Posts: 853
Blog Entries: 32

Rep: Reputation: 20
GITHUB Add Files to Create a New Version Without Deleting Other Files


I need to know on GITHUB, how to add new files, but also have them for another version that's published. And remove other files for that new version, but keep the old version and files. If this is possible, please explain more, even if not possible.

Everything I learned about GITHUB I learned on this thread
 
Old 07-31-2020, 07:47 PM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,693

Rep: Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326
Yes this is possible, and how to do it should be apparent once you learn about git branching (and possibly tagging, if that's what you mean by "published");

Code:
git checkout -b new_version
git add new_file.txt
git rm other_file.txt
git push origin new_version
Now the new_version branch will have new_file.txt but not other_file.txt, while the master branch will have other_file.txt but not new_file.txt.
 
Old 07-31-2020, 11:05 PM   #3
des_a
Member
 
Registered: Sep 2006
Posts: 853

Original Poster
Blog Entries: 32

Rep: Reputation: 20
Ok. I should clarify. How can you do it in the GUI of GITHUB website. Preferable or second choice from GITHUB Windows app. Or third from windows at all.

Not that I ONLY have and use windows. But the latest development version is only tested there. I use a mix of gcc compatible software based on devcpp based on mingw. Probably needs a clean install...

Best for now to stick with it til next version is ready of language. Have one bug to work out. Keeps passing wrong parameters...
 
Old 08-01-2020, 05:15 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 14,976
Blog Entries: 9

Rep: Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240Reputation: 4240
Quote:
Originally Posted by des_a View Post
Everything I learned about GITHUB I learned on this thread
Yeah that's not going to be enough.
Start here:
https://git-scm.com/doc
https://guides.github.com/
Keep in mind thatgithub.com is just one site that let's you create git repositories; in other words, git is the independent software that has nothing to do with github.com.
 
Old 08-01-2020, 09:29 AM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,823
Blog Entries: 13

Rep: Reputation: 3989Reputation: 3989Reputation: 3989Reputation: 3989Reputation: 3989Reputation: 3989Reputation: 3989Reputation: 3989Reputation: 3989Reputation: 3989Reputation: 3989
Quote:
Originally Posted by des_a View Post
I need to know on GITHUB, how to add new files, but also have them for another version that's published. And remove other files for that new version, but keep the old version and files. If this is possible, please explain more, even if not possible.

Everything I learned about GITHUB I learned on this thread
Have you visited the GitHub site, signed up for a free account, and read their documentation?

All which you're asking about are everyday activities which are very much available via their web portal.

Recommend you read the GitHub Guides (already cited), there are others.

Suggest you not discount the command line as well, but that's your affair.

Last edited by rtmistler; 08-01-2020 at 09:39 AM.
 
Old 08-01-2020, 01:05 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,693

Rep: Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326
Well, here's a video on doing branching using the GitHub Windows app...

Branches in GitHub using GitHub Desktop
 
Old 08-01-2020, 05:54 PM   #7
des_a
Member
 
Registered: Sep 2006
Posts: 853

Original Poster
Blog Entries: 32

Rep: Reputation: 20
Not to discount the command line, just don't think it's available in my "current" environment. Signed up, but couldn't find the docs. I'll check the links.
 
Old 08-01-2020, 08:22 PM   #8
des_a
Member
 
Registered: Sep 2006
Posts: 853

Original Poster
Blog Entries: 32

Rep: Reputation: 20
What I really need is a private server with git on it too, but I can't do that right now, as I'm on the first steps to configuring my network right now. What I'm doing here, works just fine for now. The private server would still somehow "sync" to these other servers.
 
Old 08-01-2020, 08:23 PM   #9
des_a
Member
 
Registered: Sep 2006
Posts: 853

Original Poster
Blog Entries: 32

Rep: Reputation: 20
P.S. - Started to read the docs. Going to read more now...
 
Old 08-01-2020, 08:36 PM   #10
des_a
Member
 
Registered: Sep 2006
Posts: 853

Original Poster
Blog Entries: 32

Rep: Reputation: 20
I "think" I understand just enough to proceed with what I was trying to do before, the adding and changing of files. I'll come back here later, for more information. Let me just try what I was trying to do before I mark as solved, but I think I can soon. Would've read the docs if I could've found them before. Maybe I overlooked a few links or something...
 
Old 08-01-2020, 09:12 PM   #11
des_a
Member
 
Registered: Sep 2006
Posts: 853

Original Poster
Blog Entries: 32

Rep: Reputation: 20
Using this knowledge, check out the development release of my app (a language): http://www.github.com/smileynet000/PNF
 
Old 08-01-2020, 09:12 PM   #12
des_a
Member
 
Registered: Sep 2006
Posts: 853

Original Poster
Blog Entries: 32

Rep: Reputation: 20
Figured it out. Closing, but will still read more later.
 
Old 08-01-2020, 09:14 PM   #13
des_a
Member
 
Registered: Sep 2006
Posts: 853

Original Poster
Blog Entries: 32

Rep: Reputation: 20
Uh Oh! No "mark as solved", yes, I checked in thread tools too. This issue "sometimes" seems to happen here.
 
Old 08-01-2020, 10:16 PM   #14
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,693

Rep: Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326Reputation: 4326
Quote:
Originally Posted by des_a View Post
Uh Oh! No "mark as solved", yes, I checked in thread tools too. This issue "sometimes" seems to happen here.
You don't have that option in General.
 
Old 08-01-2020, 11:27 PM   #15
des_a
Member
 
Registered: Sep 2006
Posts: 853

Original Poster
Blog Entries: 32

Rep: Reputation: 20
Quote:
You don't have that option in General
I never knew that! Thats why they are sometimes missing! I sometimes need to post in General!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: GitHub Actions moves GitHub into DevOps LXer Syndicated Linux News 0 08-09-2019 01:04 PM
LXer: Learn to use GitHub with GitHub Learning Lab LXer Syndicated Linux News 0 04-20-2018 01:12 AM
LXer: GitHub wants more new contributors, because that's what GitHub is for LXer Syndicated Linux News 0 07-27-2017 06:36 AM
deleting duplicate lines without deleting first instance of the duplicated line jkeertir Linux - Newbie 2 02-07-2011 06:55 AM
Deleting 1 of 2 Ubuntus Without Affecting Windows and Other Ubuntu Foozah Linux - Newbie 21 09-21-2009 09:54 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 10:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration