GIT

35 flashcardsby ismaelal
Study these flashcardsFree · spaced repetition · iPhone, Android, Mac & web

All cards

1
git config
Check your configuration settings
2
git add
add a file
3
git reset
unstage a file
4
git commit
commit a file
5
git checkout
revert
6
git checkout HEAD
revert from committed to working directory
7
git commit -m
for opening a text editor for longer message
8
git diff
compares working directory with the staging area for the next commit
9
git log
commit history
10
git log - patch -*
seeing only * last commits
11
git log -- stat
see only the abbreviated stats for each commit
12
git log --shortstat
only changed/insertions/deletions from --stat
13
git log --pretty
changes format of log output
14
git log --since --after --until --before
filters of log command
15
git log --author
author of commit
16
git log -S function_nam
commits on the function
17
git checkout --filename
discard a working directory file changes and restore its latest repository state
18
git checkout
discard all changes in the working directory
19
git checkout commit-id filename
retrieve a file from a specific commit into the staging area
20
git blame README
shows last author of each line
21
git rm fil
for removing files from working directory
22
git rm --cached
stopping Git to track it
23
git mv
for renaming a file
24
git tag -a v1.4 -m"my version 1.4"
tag with -a
25
git tag -l/--list "v1.8.5*"
for looking at 1.8.5 series
26
git tag -d
for deleting tags
27
git config --alias.co commit
renaming
28
git commit --amend
redo a commit
29
git reset HEAD CONTRIBUTING.md
unstage a commit
30
git checkout --CONTRIBUTING.md
unmodifying a modified file discard changes
31
git branch -v
last commit on each branch
32
git branch --merged
see which branches are already merged into the branch you're on
33
git branch --no-merged
to see the branches you haven't merged
34
git branch --move
to rename branch name
35
git push origin --delete branch_name
to delete the branch
Study all 35 cards for free

More Computer science flashcards

1.4.2 DATA STRUCTURES33 cardsComputer science · EnglishSabs2023Extensiones de archivos de audio de Windows28 cardsComputer science · SpanishcristinaWindows Command Prompt Commands for Comptia A+ 110222 cardsComputer science · Englishan OutLearn studentDeadlock in Integrated Computer Systems17 cardsComputer science · English—Griffith—Data Modeling and Business Rules12 cardsComputer science · English—Griffith—Computer Architecture: Instruction Encoding160 cardsComputer science · EnglishSamInformation Technology Basics129 cardsComputer science · EnglishSamZahlensysteme und Bitdarstellung Formeln93 cardsComputer science · GermansgCyber Security Test 173 cardsComputer science · EnglishCalSection 2.4-2.6: Social Engineering and Windows Security Practices60 cardsComputer science · EnglishpzxliHardware48 cardsComputer science · EnglishJASMINCS 325 T7 L4,5,641 cardsComputer science · EnglishClement

All Computer science decks

Study these decks in the app

Free on iPhone, Android, Mac and the web. Add any deck to your account in one tap.

Download on the App StoreGet it on Google Play
Study all 35 cards for free