LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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, 12: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, 01:23 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
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, 03:20 PM   #3
individual
Member
 
Registered: Jul 2018
Posts: 315
Blog Entries: 1

Rep: Reputation: 233Reputation: 233Reputation: 233
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.
 
  


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: 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

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

All times are GMT -5. The time now is 06:23 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