There are 186 cards with this tag.
There are 1 decks with cards that have this tag.
git - how to remove files from your hard drive which are not currently tracked by git (e.g. you did a git reset --hard and there are files lying about which were supposed to be removed)
git clean -f
# you must use the -f option for it to actually delete the files
# before using always run a git clean -n to dry run and see a list of what the -f command would do
- View
- 0 likes
git - what does this do with no args:
git reset
defaults to git reset HEAD
stage gets reset to contents of the last commit
- View
- 0 likes
git - what does this do during a merge:
git show :3:db/schema.rb
shows their version of the file
# :2 is ours
# :1 is common ancestor
- View
- 0 likes
git - distinguish between what happens in both of these scenarios:
git reset B
git checkout B
# history:
- A -B -C (HEAD, master)
reset
-A-B (HEAD, master)
# takes current branch (master) and resets it to somewhere else
checkout
-A-B(HEAD) - C (master)
# head, working tree and index all at B, but branch at C (detached head)
- View
- 0 likes
why does this fail?
git submodule add ../facebook_light_gem vendor/facebook_light_gem
git submodule add expects a remote repository (i.e. one with a url defined in .git/config)
- View
- 0 likes
git - best way to view status
git status --short
# displays a sidebar MM (red/green) filename which is great for fixing merge conflicts
- View
- 0 likes
What happens when you go back to an older commit using git checkout 14352a ?
You are left on a "detached head" - detaches your HEAD from the current branch and directly points at the commit 14352a
- View
- 0 likes
!something
in a gitignore file means what?
e.g.
!gems/cache
negates the pattern; any matching file excluded by a previous pattern will become included again.
- View
- 0 likes
-
- Previous
- Page 1 of 16
- Next
- There are 186 results.