Pull from Remote Repository

Updated . Posted . Visible to the public.

When other made changes and push those changes to remote repository, we can pull those changes to our local repository. However, if a local file will be overwritten with the pull, an error will occur: “Your local changes to the following files would be overwritten by merge”. To allow the overwrite to happen, use:

git checkout HEAD^ file/to/overwrite
git pull

Error fatal: 'git@bitbucket.org' does not appear to be a git repository

Edit /.git/config

[remote "bitstars"]
	url = git@bitbucket.org	

to

[remote "bitstars"]
	url = git@bitbucket.org:<username>/<reponame>.git
kiatng
Last edit
Posted by kiatng to Git (2014-05-17 08:07)