Step by step deployment of Git Push hook to push changes to my server in a single command I have a ReactJS app setup as a git repo. Every-time I update and push to my currently working dev branch I…
Category: git
How to add or remove a git submodule?
While a git sub module could be added with a single line command such as: git submodule add https://github.com/UrlToRepository.git foldernameofrepository it can be cumbersome to remove a submodule. There are various steps involved such as given in the next paragraph.…
Remove remote directory from repository after adding it to .gitignore
I had a directory named sites added to my git repository. As it contained a bootstrap file having names of each new domain in multiple sites setup hosted in the single CakePHP application it contained different domain entries and folders…
Remember Password, Git bash under Windows
Following an answer (http://goo.gl/EcqpTZ) here’s what I did to setup the Git Bash environment to log me in once when I start it up. This method worked for me to make “remember me” working or to save my password for…
Useful git commands or actions
Allos Overwrite Ref. Ignoring “Your local changes to the following files would be overwritten by merge” on pull git checkout HEAD^ file/to/overwrite git pull Ignoring versioned files To start ignoring a file $ git update-index –assume-unchanged path/to/file.txt To start track…