Sometimes you may need to rename your Github Repository URL for various reasons. We are not going to discuss those various reasons here of course, but in this simple tutorial I will show you how you can rename and update…
Category: git
Git Cannot open .git/FETCH_HEAD: Permission denied Solution
Did you face Cannot open .git/FETCH_HEAD: Permission denied when you try to run a git pull command on your site root folder hosted on a linux server running ubuntu? If you do you are at right place for a permanent…
How to add or remove cached git credentials on linux server (Ubuntu)
This is something I need to do occasionally, that is, to add or remove cached git credentials on a Linux server. To add when you need to set up a git repository for a new project on new server for…
How to show the full URL of a Git repository using git command
I pulled a project with from GitHub a long ago. Right now I do not know the full url of the Git repository. I want to look at the full git repository but I guess it will be confusing since…
Automatic Deployment of your Git Push to Remote Server
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…
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…