An open API service indexing awesome lists of open source software.

https://github.com/thetechnocrat-dev/github-commands

useful github or git commands that are not common enough to memorize
https://github.com/thetechnocrat-dev/github-commands

Last synced: about 2 months ago
JSON representation

useful github or git commands that are not common enough to memorize

Awesome Lists containing this project

README

        

# github-commands
useful github or git commands that are not common enough to memorize

* Update git authorship (only use on repositories with no other users!, useful if work computer puts incorrect author on commits)

git filter-branch -f --env-filter "GIT_AUTHOR_NAME='mcmenemy'; GIT_AUTHOR_EMAIL='[email protected]'; GIT_COMMITTER_NAME='mcmenemy'; GIT_COMMITTER_EMAIL='[email protected]';" HEAD

* Push a remote which is not upstream of current branch

git push --set-upstream master

* Remove a file from git repository but not local (like if you accidently pushed node modules)

git rm -r --cached node_modules

git commit -m 'remove the now ignored directory node_modules' (make sure you added folder to .gitignore)

git push