Skip to content

Useful git commands

benVar edited this page Mar 17, 2017 · 4 revisions

Below are some of the git commands that I found useful. Because I don't have to use these commands often, I tend to forget them. Hence I'm collecting them here.

Note: Feel free to edit or make suggestions or even add more commands

To set the origin url

git remote set-url origin <https://github.com/<user_name>/<project_name>.git>

To add upstream

git remote add upstream <https://github.com/<user_name>/<projectname>.git>

Clone this wiki locally