Implement Git with Rust Part0
What is Git
We use git to manage our code, and do version control.
- generally, I use
git init
orgit clone
to start a project locally. - And do some work in the git repo.
- And then use
git add
to add the files to the staging area. - And then use
git commit
to commit the changes to the local repository. - And then use
git push
to push the files to the remote repository. - And then use
git pull origin master
to pull the changes from the remote repository. - use
git checkout -b <new_branch>
to create and checkout to a new branch. - use
git rebase master
to rebase changes from master to the current branch.