Skip to content

lamp git

khensolomon edited this page May 9, 2018 · 2 revisions

Git

# install
$ sudo apt-get install git

# config
$ git config --global user.name "userName"
$ git config --global user.email "userEmail"

# create local repository, folderName has to be already on GitHub!
$ git init folderName
$ cd folderName
$ gedit README

# create remote respository
$ git remote add origin https://github.com/userName/repositoryName.git

# add file
$ git add README

# commit
$ git commit -m "Message"

# push
$ git push origin master

# clone
$ git clone https://github.com/userName/repositoryName

Clone this wiki locally