Let’s say you’re moving from one service to another, to update your origin url use the following command : $ git remote remove origin $ git remote add origin git@github.com:your_account/repository.git If you get an error message like this : You asked me to pull without telling me which branch you Do the following : $ …
git
git: checkout a specific revision of a file
Sometimes, you need to patch a specific file but you can’t pull the whole branch when deploying. To checkout a specific version revision of a file, git syntax is : git checkout -m 4a3171c — filename For example, to get the last revision number of your master branch, look at your git fetch ouput : …