LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-22-2019, 01:21 PM   #1
Cory0127
LQ Newbie
 
Registered: Jul 2019
Posts: 1

Rep: Reputation: Disabled
Question Need help with pushing a commit to Git


I am working on a basic python program. I have a git hub page for it and I don't know how to push a commit. I am using the terminal. Any help would be greatly appreciated. Thanks!
 
Old 08-22-2019, 02:23 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,437
Blog Entries: 13

Rep: Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746Reputation: 3746
Here are some command line suggestions:
Code:
$ git status
git add <path/filename>
git add -u
git commit -m "<comment>"
git push
git push origin master
git push origin <branch-name>
Basically you should add new or modified files, these are the git add commands, and there are various options to choose.

Next you commit, using the commit, and typically with a comment.

Finally you push these changes to the repository. I find that typing "git push" first gives me advice back to tell me if I need the origin, etc. Sometimes yes, sometimes no. I don't know the full rules there, sorry, just my experiences.

Hope this helps.
 
Old 08-22-2019, 04:20 PM   #3
individual
Member
 
Registered: Jul 2018
Posts: 267
Blog Entries: 1

Rep: Reputation: 210Reputation: 210Reputation: 210
Github has a guide explaining how to clone, push, etc. over HTTPS and SSH.
EDIT: To be clear, these instructions are for using Github. Rtmistler provided the steps for using git (which is essentially what Github is a front for).

Last edited by individual; 08-22-2019 at 04:21 PM.
 
  


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: Gitpod git-bolts git-IDE onto GitHub for in-browser code git-editing LXer Syndicated Linux News 0 09-05-2018 05:50 AM
cvs [commit aborted]: 'root' is not allowed to commit files rakesh@linuxforum Linux - Newbie 7 09-26-2013 04:53 PM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 03:09 PM
cvs [commit aborted]: 'root' is not allowed to commit files r_ramya06 Linux - Newbie 5 07-08-2008 10:04 AM
LXer: Microsoft won't commit to the open document standard it's pushing so hard LXer Syndicated Linux News 0 09-25-2007 07:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration