5 Version control
Read Chapters 1 and 2 of Pro Git.
5.1 Debugging tips
- If the repository state becomes too messed up, then you can follow these steps:
- Move the files you have changed since the previous commit to a temporary directory.
- Delete the directory on your computer containing the messed up repository via
rm -rf <directory-name>
. - Clone the repository again from GitHub.
- Copy the files you have changed since the previous commit from the temporary directory to the new repository directory.