Development tips, help, and suggestions for building performant websites
Version Control
Linux – CentOS6 – Git – fatal – Where do you want to fetch from today?
05 months ago
If you are using GIT as your version control and you attempt to do a `git pull` and get a “fatal: Where do you want to fetch from today?” message, you need to do either of the following:
# Specify the remote repo mkdir repo cd repo && git init git pull git@github.com:user/repo.git # Or # Clone the repo mkdir repo cd repo && git clone git pull git@github.com:user/repo.git . git pull
GIT – Basic Usage Guide
011 months ago
by Mike Purcell
in Git
Living doc storing commonly used git commands.
Revert unstaged changes
git checkout -- .
Rename repo
vi .git/config #change url in remote origin section to new name
Now change the name of the remote repo.
git push #test to make sure things weren't broken
Remove all untracked files
git clean -f -d #will also remove untracked dirs
Reset local repo
git reset --hard HEAD #useful for recovering after a git rm -r .
Automatically Stage Tracked Files (and Mass Remove Deleted Files)
git add -u
