-
Notifications
You must be signed in to change notification settings - Fork 0
/
2-2.notes
13 lines (11 loc) · 849 Bytes
/
2-2.notes
1
2
3
4
5
6
7
8
9
10
11
12
13
Git
"git init" When starting out with a new repository, you only need create it once: either locally,
and then push to GitHub, or by cloning an existing repository
"git add" moves changes from the working directory to the staging area.
"git status" allows you to see the state of your working directory and the staged snapshot of your changes.
"git commit" takes your staged snapshot of changes and commits them to the project.
"git reset" undoes changes that you’ve made to the files in your working directory.
"git log" enables you to browse previous changes to a project.
"git branch" lets you create an isolated environment within your repository to make changes.
"git checkout" lets you see and change existing branches.
"git merge" lets you put everything back together again.