This is an old revision of the document!


Git HOWTO : https://github.com/Labka-cz/Irssi_scripts

Request access to shared repo by email to Over at labka.cz

Create project from existing directory

* https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/

# cd ~/directory
# git init
# git add . -A ## add all files in repository

* in case you want to add dot files

## git add -f .gitignore

# git commit -m "First commit" ## add first commit with comet to be ready to be uploaded to git[hub]
## create project directory on GitHub, and copy its link by buton "Clone or download" where you can get its URL
# git remote add origin //remote repository URL//
# git push -u origin master ## push you commit to remote URL repo

Evey day use of Git[Hub]

# cd to already inited directory
# git add . -a ## or you can add just specific file
# git commit -m "write what is your commit about"
# git push

* when you want to download last changes from with changes from repo, to already inited dir

# git pull

Branches / forks

Howto connect GitHub to IRC

  • project/git.1479025953.txt.gz
  • Last modified: 2016/11/13 09:32
  • by over23