Thursday, March 31, 2016

Simple command to start with GIT

This post keeps some quick references to simple command lines for starting using git with bitbucket.

```bash
`mkdir ~/git/myproject
`cd ~/git/myproject
`git init
`git remote add origin https://[myname]@bitbucket/[myname]/myproject.git
`touch helloworld.txt
`git add --all .
`git commit -m "first time commit"
`git push origin master

Other useful commands like:


  • View remote urls : git remote -v
  • Change remote url: git remote set-url add origin ...

`

No comments:

Post a Comment