This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git add . //the dot adds all the files | |
git add filename // add specific file to commit | |
git status //gives current files modified but not committed | |
git diff filename // so changes to the file since last time file was committed | |
git commit -m “add message about commit here” | |
git push -u origin branch //need to use this for initial commit to that branch | |
git push //if already pushed to branchname | |
git stash // will store current work and push you back to most recent working directory | |
git checkout -b branchname //will create new branch and check you into it | |
git checkout branchname //will check you into already created branch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
do-release-upgrade // run this if ubuntu is not at current version | |
sudo apt-get update | |
sudo wget http://nginx.org/keys/nginx_signing.key //get signing key to be able to use nginx repo | |
// make sure enablednshostnames and enablednssupport is set to yes or next line will not work | |
sudo apt-key add nginx_signing.key add signing key | |
// add the sources from where the nginx packages can be obtained | |
sudo vi /etc/apt/sources.list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. sudo apt-get update | |
2. sudo apt-get install git | |
3. git clone git://github.com/sstephenson/rbenv.git .rbenv | |
4. echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile | |
5. echo 'eval "$(rbenv init -)"' >> ~/.bash_profile | |
6. exec $SHELL | |
7. git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
8. echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bash_profile | |
9. exec $SHELL | |
10. source ~/.bash_profile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo yum update |