=======================
Create new repository with suitable name on your http://github.com/user profile (Check + sign).
Go to the terminal directory where you have the files to be uploaded to the repository.
For initializing use:
#git init
For adding all files use:
#git add
.For linking to the git repository use(without " "):
#git remote add origin "repository link"
For committing current files to the repository:
#git commit -a -m "First Commit"
For updating it with the repository:
#git push origin master
Check your files at the repository. So simple!
Create a fork :
===============
go to the repository on website click on fork
# git clone "link"
# git remote -v
To create new branch
===========
# git push origin "new-branch-name"
Show current branches along with other branches
======================================
# git branch
git checkout to other branches
========================
# git checkout -b "branch-name"
commit to that branch:
======================
# git commit -a -m '"Message"'
No comments:
Post a Comment