This post is part of the series on Git Command Line Snippets where I am taking a look at performing actions on GitHub using the git command line.
There are three steps required to add your changes to a GitHub repository:
- Add
- Commit
- Push
Fistly, you need to add your changes; it is possible to only add specific files, but in my case I always want to add everything; this command will add all changes including added changed or deleted files and folders:
git add --all
Once you have added the changes, you need to commit them; you can supply a commit message, but this should be a maximum of 55 characters.
git commit -m "Release for x and y"
Once you have committed the changes, you need to push them to GitHub for them to appear in the repository:
git push
Click to show/hide the Git Command Line Snippets Series Index
Git Command Line Snippets |
---|
Update Name and Email |
Choose Repository |
Add, Commit and Push Changes |
Create Release |
Get Release Information |
Upload Release Asset |
What should we write about next?
If there is a topic which fits the typical ones of this site, which you would like to see me write about, please use the form, below, to submit your idea.