Git: Difference between revisions

From bibbleWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
= Helpful commands =
= Helpful commands =


Getting stuff from other branch
== Getting stuff from other branch ==
  git remote add live <other branch>
  git remote add live <other branch>
  git pull live maste
  git pull live maste


Commit
== Commit ==
  git commit -m "This is a great check in"
  git commit -m "This is a great check in"
git push


== Checking out a branch
== Checking out a branch ==
  git clone <address>
  git clone <address>
  git fetch origin
  git fetch origin
  git checkout <branch name>
  git checkout <branch name>
== Setting Credentials ==
git config --global credential.helper store

Revision as of 03:23, 7 February 2020

Helpful commands

Getting stuff from other branch

git remote add live <other branch>
git pull live maste

Commit

git commit -m "This is a great check in"
git push

Checking out a branch

git clone <address>
git fetch origin
git checkout <branch name>

Setting Credentials

git config --global credential.helper store