Commands

- Switching branches locally

1
2
3
4
5
git checkout -b <branch> origin/<branch>
# Get remote branch to local.
git checkout <branch>
# Switch branches already fetched

Tricks

Issues

- Cannot see new remote branch

1
2
3
4
5
git ls-remote origin
# Doble check if branches has been actually pushed remotely.
git fetch
# It should download the branch references from the remote repository
1
2

Tips-Git

Stop enter the passphrase

Pasted Graphic.tiff

duplicate the repository

1
2
3
4
5
6
7
8
9
10
Open Terminal.
Create a bare clone of the repository.
git clone --bare git@github.com:coyawa/DataVisFinal.git
Mirror-push to the new repository.
cd old-repository.git
git push --mirror git@github.com:coyawa/CS573-DataVisFinal.git
Remove the temporary local repository you created in step 1.
cd ..
rm -rf DataVisFinal.git

SSH Key - Still asking for password and passphrase

Pasted Graphic\_1.tiff