-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathclass-3
More file actions
22 lines (21 loc) · 1.01 KB
/
class-3
File metadata and controls
22 lines (21 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
## Notes Class 3
**git stash** - saves changes w/o committing it removes changes and hides them.
**git stash apply** - retrieves hidden commands.
**git remote** - view short names of remote handles.
**git remote -v** - view all remote URLs, next to their corresponding short names.
**git remote add www.url.com** - adds remote.
**git fetch remotename** - pulls data from a remote project.
**git push remotename branchname** - pushes changes upstream.
**git remote rename** - renames remote.
**git remote rm** - removes git remote.
**git commit --ammend** - alter commit message/ add files.
**git reset HEAD** - unstages files.
**git revert** - appends new commit, undoes changes by a specific commit.
**git checkout** - have a file return to its state when last committed.
**git checkout --file** - overwrites file
**git status** - view changes
**git add filename** - adds file
**git commit -m "message"** - adds message and commits
**git push origin main** - push command
**git config pull.rebase flase** -
**git clone pastelinkhere** -