- Feb 2017
-
git-merge.com git-merge.com
-
Greatest Hits of the Git Maintainers Room: 2016
renamed to: Greatest Hits from the Ask-Git-Core
- .gitignore vs .git/info/exclude = tracked in repo vs. local config
- submitgit.herokuapp.com & imerge
also: @_flexbox's sketch notes
-
- Sep 2016
-
github.com github.com
-
Nice intro of git submodule
Tags
Annotators
URL
-
- Apr 2016
-
git.seveas.net git.seveas.net
-
When .git/HEAD is gone, git doesn't even think your repository is a repository. So really, we must fix this first or else we will not be able to use any git commands to salvage the rest.
After a recent power outage, a call to 'git status' returned this:
fatal: Not a git repository (or any of the parent directories): .git
When I inspected .git/HEAD, it was filled with what looked like binary code, rather than a string like:
ref: refs/heads/master
or
ref: refs/heads/develop
This:
echo 'ref: refs/heads/develop' > ./git/HEAD
did the trick!
-
-
medium.com medium.com
-
Git for teachers
Tags
Annotators
URL
-
- Aug 2015
-
wiki.archlinux.org wiki.archlinux.org
-
I use etckeeper on my Arch Linux boxen, to great joy
Tags
Annotators
URL
-
- Jun 2015
-
davidwalsh.name davidwalsh.name
-
The best way to find branches I've recently used is to use the following command: git for-each-ref --sort=-committerdate refs/heads/
Tags
Annotators
URL
-
- May 2015
-
davidwalsh.name davidwalsh.name
-
git for-each-ref --sort='-committerdate' --format='%(refname)%09%(committerdate)' refs/heads | sed -e 's-refs/heads/--'
Tags
Annotators
URL
-
-
www.paulboxley.com www.paulboxley.com
-
If you want a deeper explanation skip down to "The long version". ref~ is shorthand for ref~1 and means the commit's first parent. ref~2 means the commit's first parent's first parent. ref~3 means the commit's first parent's first parent's first parent. And so on. ref^ is shorthand for ref^1 and means the commit's first parent. But where the two differ is that ref^2 means the commit's second parent (remember, commits can have two parents when they are a merge). The ^ and ~ operators can be combined.
-
- Jan 2015
-
hypothes.is hypothes.is
-
Issues can be reported at: https://github.com/hypothesis/h/issues
Tags
Annotators
URL
-
- Nov 2014
-
git-scm.com git-scm.com
-
Git Basics So, what is Git in a nutshell?
Getting started with Git
-
- Jan 2014
-
www.derekgourlay.com www.derekgourlay.com
-
Rule of thumb: When pulling changes from origin/develop onto your local develop use rebase. When finishing a feature branch merge the changes back to develop.
Tags
Annotators
URL
-
-
sandofsky.com sandofsky.com
-
If Master has diverged since the feature branch was created, then merging the fea - ture branch into master will create a merge commit. This is a typical merge.
Tags
Annotators
URL
-
-
sandofsky.com sandofsky.com
-
Git is revolutionary because it gives you the best of both worlds. You can regularly check in changes while prototyping a solution but deliver a clean history when you’re finished. When this is your goal, Git’s defaults make a lot more sense.
Git gets this basic division of worlds right and is a fundamental departure from other version control systems like SVN. The feature that enables all this is nearly cost-free, instantaneous branching.
What makes this new world complex is not due to git, but instead because the world is, quite simply, complex! Good tools like git help us manage (some of) the complexity.
-
If you’re fighting Git’s defaults, ask why. Treat public history as immutable, atomic, and easy to follow. Treat private history as disposable and malleable. The intended workflow is: Create a private branch off a public branch. Regularly commit your work to this private branch. Once your code is perfect, clean up its history. Merge the cleaned-up branch back into the public branch.
Good defaults are sometimes hard to recognize, especially when the tool is complex.
Questioning the defaults-- and deciding why you would keep them or change them-- is a good antidote to dismissing something due to not understanding it.
If you can't understand why you don't like the defaults, then decide what you would choose instead and why you would change the default as it stands. Does the default make it easy to do the "right" thing AND hard to do the "wrong" thing? The second part of that statement is the most important since it might not be obvious what the "right" thing is.
Even if you don't like the defaults, ask yourself if they continually lead you away from perils and problems that would plague you if a different set of defaults were chosen?
Tags
Annotators
URL
-