We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1d2106 commit 85e03f8Copy full SHA for 85e03f8
git/basics.md
@@ -1,4 +1,7 @@
1
# Git Basics
2
3
1. Initializing a git repo: `git init`
4
-2. Add an untracked file: `git add file`
+2. Add an untracked file: `git add file`. The same command is used to *stage* a tracked modified file.
5
+3. Check status: `git status`. The newly added file is in *modified* state.
6
+4. Commit the file: `git commit -m "added file"`
7
+5. To unstage a file `git reset HEAD file`. To unstage all files `git reset HEAD`.
0 commit comments