Wednesday, June 22, 2016

Git - Commit project to new branch

Create a new branch and move your project to it:
$ git checkout -b [New Branch]
If you have modified or created files, add them to the project:
$ git add [Your modified or new files]
Commit your changes:
$ git commit -m '[Your Comments]'
Push the project to the new branch:
$ git push origin [New Branch]


See also: https://git-scm.com/book/en/v2/Git-Branching-Basic-Branching-and-Merging

Monday, June 13, 2016

Friday, June 10, 2016

Install Sublime Text 3

Download Sublime Text 3:
wget https://download.sublimetext.com/sublime_text_3_build_3114_x64.tar.bz2
Uncompress tarball:
sudo tar vxjf sublime_text_3_build_3114_x64.tar.bz2
Move sublime directory to /opt:
sudo mv sublime_text_3 /opt/
Create symbolic link to sublime:
sudo ln -s /opt/sublime_text_3/sublime_text /usr/bin/sublime
Execute sublime and enjoy!:
sublime

Thursday, June 9, 2016

Git - Steps to commit a project

1. Show the status(how many new files, deleted files, modified files, etc.):
$ git status
2. Add all files to the project:
$ git add -A
the -A option means track all including deleted files.

3. Commit:
$ git commit -m "[Comments]"
the -m option gives you the possibility to add your comments in the same line.

4. Push:
$ git push -u origin master
The -u is optional and what it does is sets your local repo to a central one in order to, in the next time, git knows where to push and pull from.

For basic snapshotting see:
http://gitref.org/basic/

Popular Posts

Recent Posts

Unordered List

Text Widget

Pages

Search This Blog

Powered by Blogger.