A online storage for your brain child.
Website:
https://www.github.com/
Lets login and create a repository for our code.
We will follow this page
https://help.github.com/articles/create-a-repo
Disk Size:
https://help.github.com/articles/what-is-my-disk-quota
Delete a Repository:
https://help.github.com/articles/deleting-a-repository
Ubuntu Install:
sudo apt-get install gitk
sudo apt-get install git
RabbitVCS - A GUI Equivalent of Tortoise:
Rabbitvcs is a svn/git client which can be integrated with nautilus and thunar etc. Installation steps are following
Installation process:
sudo add-apt-repository ppa:rabbitvcs/ppa
sudo apt-get update
sudo apt-get install rabbitvcs-nautilus3 (only for nautilus 3.x)
sudo apt-get install rabbitvcs-nautilus (only for nautilus 2.x)
Fix for nautilus 3.x:
sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 /usr/lib/libpython2.7.so.1.0 sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 /usr/lib/x86_64-linux-gnu/libpython2.7.so
Restart nautilus:
You will get rabbitvcs menu in nautilus context menu (right click menu) nautilus -q
You will get rabbitvcs menu in nautilus context menu (right click menu)
We will put common Commands here:
We will Create a folder /opt/i-vizon/
Right click goto RabbitVCS Git->Clone and in URL will paste https://github.com/i-Vizon/trunk and in Destination: /opt/i-vizon/trunk
We can add files using git add, example git add README, git add <folder>/*, or even git add *
Then use git commit -m "<Message>" to commit files
Finally git push -u origin master to push files and enter credentials. Sorry folks no more details :)
We can create folder / files in the required path under /opt/i-vizon/trunk and follow steps 3 - 5.
When you make modifications run git status which gives you the list of files modified, add them using git add * for everything or you can specify each file individually, then git commit -m <message> and finally, git push -u origin master.
Example:
Say we created a file README, running git status gives us
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed) #
# README
Run git add README, the files are staged for committing. Then run git status again, it should give you - the files have been added and ready for committing.
$ git status
# On branch master
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage) #
# new file: README
# nothing added to commit but untracked files present (use "git add" to track)
Then run
$git commit -m 'Added README'
git commit -m 'Added README' [master 6402a2e] Added README 0 files changed, 0 insertions(+), 0 deletions(-) create mode 100644 README
Finally, git push -u origin master to push the remote branch master for the repository origin.
$ git push -u origin master
Counting objects: 4, done. Delta compression using up to 2 threads. Compressing objects: 100% (2/2), done. Writing objects: 100% (3/3), 267 bytes, done. Total 3 (delta 1), reused 0 (delta 0) To xxx@xxx.com:xxx/xxx.git 292c57a..6402a2e master -> master Branch master set up to track remote branch master from origin.
The files have been pushed successfully to the remote repository.
Running a git pull origin master to ensure you have absorbed any upstream changes
$ git pull origin master
remote: Counting objects: 12, done.
remote: Compressing objects: 100% (4/4), done.
remote: Total 8 (delta 4), reused 7 (delta 3)
Unpacking objects: 100% (8/8), done.
From xxx.com:xxx/xxx
* branch master -> FETCH_HEAD
Updating e0ef362..6402a2e
Fast-forward public/javascript/xxx.js | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
create mode 100644 README
If you do not want to merge the upstream changes wit your local repository, run git fetch to fetch the changes and then git merge to merge the changes.
git pull is just a combination of fetch and merge.
git add --all git commit -am "<commit message>" git push -u origin master