-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCheatsheet
More file actions
23 lines (17 loc) · 877 Bytes
/
Cheatsheet
File metadata and controls
23 lines (17 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// git clean // removes untracked files from the working directory
git clean // does nothing requires flag
-n // test run. will show you the results
-f // force, runs git clean, deletes untracked files from working directory
//git status -compares the working directory,
// staging area and repo for varation. use this command to look for untracked files.
// or to check whether or not the repo is up to date
//Signing merges
git merge feature-awesome -S
// renaming file
// in order for git to track a rename easily.. you should
// git will automaticaly handle the move rename and update the staging area while recognizing the files lineage
git mv old_filename new_filename
//git commit Shortcut
// how to stage and commit in one step
// WARNING dangerous, not considered best practive
git commit -a // the negative a flag is the one of interest here