Skip to content

Instantly share code, notes, and snippets.

@Remiii
Last active August 29, 2015 14:03
Show Gist options
  • Save Remiii/1d81e47425f228069079 to your computer and use it in GitHub Desktop.
Save Remiii/1d81e47425f228069079 to your computer and use it in GitHub Desktop.
Git Noob

Git Noob

Yo les Noobs, c'est ici que cela se passe ! 👊

Configuring a remote for a fork and Syncing a fork

$ git remote add user git@github.com:user/repo.git
$ git fetch user
$ git checkout -b user-branchName remotes/user/repo

Sample:

$ git remote add remiii git@github.com:Remiii/mydotfiles.git
$ git fetch remiii
$ git checkout -b remiii-master remotes/remiii/master

More details here:

Update Symfony project

$ git checkout user-branchName
$ git pull
$ git checkout yourBranch
$ git merge user-branchName

$ composer install
$ php app/console doctrine:schema:update --force
$ php app/console assets:install
$ sudo ./cacheClear.sh

Sample:

$ git checkout remiii-development
$ git pull
$ git checkout development
$ git merge remiii-development

$ composer install
$ php app/console doctrine:schema:update --force
$ php app/console assets:install
$ sudo ./cacheClear.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment