AnkiLab
Sign in

Filter by tags:

gitadd more tags...

142 cards matching

Showing cards 1-20 of 142
Front
how does git store the project history? (snapshots or diffs?)
lang
git
Back
snapshots

(but if a file doesn't change git just stores a link to this file in a previous version)
Front
if a file doesn't change from a version to the next, what does git do?
lang
git
Back
It stores a link to the actual file (in the latest version where it is actually stored)
Front
when you clone a project do you also clone all of its history?
lang
git
Back
Yes
Front
what is the staging area?
lang
git
Back
a snapshot of what will go into the next commit
Front
what is the working directory?
lang
git
Back
all the files, extracted from the git directory, stored locally on computer to be worked on
Front
what happens if you stage a file, modify it and then commit?
lang
git
Back
It is committed as it was when it was staged
Front
comment in .gitignore
lang
git
Back
#
Front
.gitignore: ignore all files in directory
lang
git
Back
directory/
Front
.gitignore: ignore filename only in the root
lang
git
Back
/filename
Front
.gitignore: what does !filename mean?
lang
git
Back
do track filename
Front
.gitignore: do not track the .ext files, except exception.ext
lang
git
Back
*.ext
!exception.ext
Front
unstage all the currently staged files
lang
git
Back
git reset HEAD .
Front
.gitignore: ignore directory/......../pattern (in any subdirectory)
lang
git
Back
directory/**/pattern
Front
what does git diff do?
lang
git
Back
show the unstaged diff
Front
show the history of commits
lang
git
Back
git log
Front
you've messed up with your commit. What do you do?
lang
git
Back
re-commit with the --amend option: it replaces the faulty commit (git commit --amend)
Front
show the remote servers associated with this project, with urls for fetch and push
lang
git
Back
git remote -v
Front
what is 'origin'?
lang
git
Back
Where you cloned from
Front
what does git pull ... do?
lang
git
Back
fetch and merge with current work
Front
syntax of git push (simple one, same branch)
lang
git
Back
git push <remote> <branch>
Showing cards 1-20 of 142