LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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
Senior Member
 
Registered: Sep 2006
Posts: 1,416
Blog Entries: 43

Rep: Reputation: 36
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: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
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
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
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: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
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: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
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: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
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
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
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
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
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
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

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

Original Poster
Blog Entries: 43

Rep: Reputation: 36
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
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
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
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

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

Original Poster
Blog Entries: 43

Rep: Reputation: 36
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: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
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
Senior Member
 
Registered: Sep 2006
Posts: 1,416

Original Poster
Blog Entries: 43

Rep: Reputation: 36
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



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 09:57 AM.

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