git

Powered by Drupal
By rprice , 6 January 2016

Our goal is to do a complete conversion of our Subversion repository and end up with a bare Git repository acceptable for sharing with others (privately or publicly). Bare repositories are ones without a local working checkout of the files available for modifications. They are the recommended format for shared repositories.

By rprice , 6 January 2016

Our goal is to do a complete conversion of our Subversion repository and end up with a bare Git repository acceptable for sharing with others (privately or publicly). Bare repositories are ones without a local working checkout of the files available for modifications. They are the recommended format for shared repositories.

By rprice , 6 January 2016

Our goal is to do a complete conversion of our Subversion repository and end up with a bare Git repository acceptable for sharing with others (privately or publicly). Bare repositories are ones without a local working checkout of the files available for modifications. They are the recommended format for shared repositories.

By rprice , 2 November 2015

Commit the composer.json changes to the repo. The files downloaded by Composer do not need to be added to the repo. You’ll see a .gitignore file that keeps them out (this was added as a part of the composer packaging). Only composer.json, .gitignore, code in /web/modules/custom and the content of the /web/sites subdirectory (other than the files directory) will be stored in the git repository.

By rprice , 2 November 2015

Commit the composer.json changes to the repo. The files downloaded by Composer do not need to be added to the repo. You’ll see a .gitignore file that keeps them out (this was added as a part of the composer packaging). Only composer.json, .gitignore, code in /web/modules/custom and the content of the /web/sites subdirectory (other than the files directory) will be stored in the git repository.

By rprice , 19 March 2015

i broke git while trying to Pull Changes from my Repo Push my files Pull Changes from my Repo Update my repo with changes from another repo Clone a repo to my computer Create a new Repository Fork a Repo Create a Pull Request Remove Changes from Staging Pull and Merge with minimal conflicts Did you do the following steps? git pull origin (branch name) Merge Conflict? Fix the files locally and then git status git add (fixed filename) git commit -m "Fixed Merge Conflicts" git push origin (branch name)

By rprice , 17 June 2014

Platform.sh is a powerful cloud hosting solution with an optimized development-to-production workflow, enabling Continuous Integration and Continuous Delivery during development, at launch, and throughout a site's life. Unique snapshot technology enables cloning at the speed of thought, completely replicating full-stack environments into new branches on demand in a moment.

By rprice , 15 August 2012

If you have an uncommitted change (its only in your working copy) that you wish to revert (in SVN terms) to the copy in your latest commit, do the following:

git checkout filename

This will checkout the file from HEAD, overwriting your change.

The rest of the Internet will tell you to use git reset --hard, but this resets all uncommitted changes you’ve made in your working copy. Type this with care.

By rprice , 19 June 2012

The magic is in the --patch argument to git-add(1). This instructs Git to display all changes to the files specified on a hunk-by-hunk basis and lets you choose one of the following options for each hunk
...

In this case, I staged (y) about half of the hunks (the ones that were bookmark related) and left the other hunks unstaged (n). Now my index has all of the changes to synchronize-bookmarks plus half of the changes made to models.rb.