How to connect to previous projects after reinstalling git
1. Configure the secret key
ClickGit Bash Here
to enter the command operation window
Generate the local git warehouse secret key:
1. Fill in your email address
2. Keep pressing Enter
ssh-keygen -t rsa -C “[email protected]”
3. Usecat
to view the generated secret key, paste and set it togitee
cat ~/.ssh/id_rsa.pub
Auxiliary reference for this step:Detailed explanation of using git + code cloud (getting started) (mac+windows tutorial)
2. Set email and username
git config --global user.email [email protected]
git config --global user.name xxxx
3. Add original project
git config --global --add safe.directory D:/developCode/project/xxxx-event/xxxx-server
This way you can version manage it again!
4. Supplementary commands
Continuously supplement and learn from every encounter.
# 查看提交日志信息
git reflog