Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 08-22-2019, 12:21 PM   #1
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, 01:23 PM   #2
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,286
Blog Entries: 13

Rep: Reputation: 4365Reputation: 4365Reputation: 4365Reputation: 4365Reputation: 4365Reputation: 4365Reputation: 4365Reputation: 4365Reputation: 4365Reputation: 4365Reputation: 4365
Here are some command line suggestions:
$ 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, 03:20 PM   #3
Registered: Jul 2018
Posts: 315
Blog Entries: 1

Rep: Reputation: 232Reputation: 232Reputation: 232
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 03:21 PM.


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 04:50 AM
cvs [commit aborted]: 'root' is not allowed to commit files rakesh@linuxforum Linux - Newbie 7 09-26-2013 03:53 PM
[SOLVED] Can't install Git repo (I don't git git ) Nemus Linux - Software 3 05-20-2011 02:09 PM
cvs [commit aborted]: 'root' is not allowed to commit files r_ramya06 Linux - Newbie 5 07-08-2008 09: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 06:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:36 PM.

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