A few useful Git Commands
gitignore-list
- Get a list of Gitignore templates from Github's gitignore templates repository.gitignore-add
- Add a Gitignore from Github's gitignore templates repository.deploy
- If you use Heroku or such a workflow in which you deploy using git, then this command will be helpful. Create.gitdeploy
executable script that does eveything you'd do at the time of deployment and run the script usinggit deploy
.
- Put the above files in the
git-core
directory. - Make sure they are executable.
Sometimes you may have Git installed at multiple places in your system. In that case, do the following:
- Clone this repository
- Give all the files executable permissions.
- Add the directory to your path.
Warning: the issue with this approach is that Git's autocomplete won't
work at all. In that case, I just create new aliases in my global
.gitconfig
to execute these files.