Git Flashcards

1
Q

remove a file from git’s history. This could be used when you add a file to .gitignore after you have committed it

A

git rm –cached

git rm -r –cached

git rm -r –cached . (everything in cwd)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

add multiple remote repos to a project

A

check the remote repos:
git remove -v

add remote repos:
git remote add

now you can do:
git pull /

How well did you know this?
1
Not at all
2
3
4
5
Perfectly