Skip to content

Commit 85e03f8

Browse files
author
Shambhu Shrestha
committed
commit change
1 parent d1d2106 commit 85e03f8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

git/basics.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Git Basics
22

33
1. Initializing a git repo: `git init`
4-
2. Add an untracked file: `git add file`
4+
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

Comments
 (0)