Using git.
1. Initialize git:
Type git init in the desitnated folder you want to initialize.
2. Initializing a Git repository will create a folder called .git
inside the repository folder:
3. Git status
4. Add git to the stage by using git add
5. Configuring git by tying:
git config --global user.email "[email protected]"
git config --global user.name "Your name"
6. A commit is a way to store a snapshot of the files in the folder at a certain point in time.
git commit -m "Initial commit. Added script.py and README.md" #make a commit with a informative message.
7. Use git log to check the git history.
8. Use git log --stat to check the detail of the git history.
时间: 2024-10-05 23:47:44