I find myself looking for the same commands over and over when working with Git, so I decided to make a little cheat sheet for myself of the commands that I use the most
Get latest version of a branch
git pullCreate new branch
git checkout -b [name_of_your_new_branch]Add latest changes made in a repository
# Add all the changed
git add .
# Add specific changes
git add <file(s) name(s)>Commit your changes and add a title and a description
git commit -m "Title" -m "Description"Push your changes to your remote repository
git push originThe work origin is a alias your system uses to refer to the URL of your project’s repository. You can check the origin value with the command:
git remote -vAfter your done you can delete your branch
git branch --delete [name_of_your_branch]
