Scott Chacon,Ben Straub

Pro Git

Notify me when the book’s added
To read this book, upload an EPUB or FB2 file to Bookmate. How do I upload a book?
  • Tinahas quoted4 years ago
    So instead of the result we see in You merge in the same work again into a new merge commit, we would end up with something more like Rebase on top of force-pushed rebase work..
  • Tinahas quoted4 years ago
    Do not rebase commits that exist outside your repository and people may have based work on them.
  • Tinahas quoted4 years ago
    Now, the snapshot pointed to by C4' is exactly the same as the one that was pointed to by C5 in the merge example. There is no difference in the end product of the integration, but rebasing makes for a cleaner history. If you examine the log of a rebased branch, it looks like a linear history: it appears that all the work happened in series, even when it originally happened in parallel.
  • Tinahas quoted4 years ago
    Generally it’s better to simply use the fetch and merge commands explicitly as the magic of git pull can often be confusing.
  • Tinahas quoted4 years ago
    In “detached HEAD” state, if you make changes and then create a commit, the tag will stay the same, but your new commit won’t belong to any branch and will be unreachable, except by the exact commit hash. Thus, if you need to make changes — say you’re fixing a bug on an older version, for instance — you will generally want to create a branch:

    $ git checkout -b version2 v2.0.0
    Switched to a new branch 'version2'
  • Tinahas quoted4 years ago
    The word “remote” does not necessarily imply that the repository is somewhere else on the network or Internet, only that it is elsewhere. Working with such a remote repository would still involve all the standard pushing, pulling and fetching operations as with any other remote.
  • hmz1453has quoted5 years ago
    git log --since=2.weeks
  • hmz1453has quoted5 years ago
    git log --pretty=oneline
  • hmz1453has quoted5 years ago
    git log --stat
  • hmz1453has quoted5 years ago
    When you run git log in this project, you should get output that looks something like this:
fb2epub
Drag & drop your files (not more than 5 at once)