Our "Introduction to Compilers(OV)" Group Project.
- sudo apt-get install git-core
Run the following commands to add a SSH Key to your SSH-agent so you can use git without logging in again and again.
- ls -al ~/.ssh // Gives you a list of the SSH key folder
- ssh-keygen -t rsa -b 4096 -C "[email protected]" // Generates a new SSH-key both private and public
- ssh-add ~/.ssh/fileNameYouJustCreated // Give this the file you just created, which is NOT ".pub"
- Now go to github and add a SSH Key, you must paste the contents from fileNameYouJustCreated.pub into github Source: https://help.github.com/articles/generating-ssh-keys/
- git clone [email protected]:PtxDK/OV.git
- git add . // Adds everything to next push
- git status // shows changes you are about to commit
- git commit -m "Some Comment" // Prepare for push
- git push // You are sending all chosen changes to your repository
- git push origin master
- git rm filemane // Removes file from repo on next push
- git status // Shows changes you are about to commit
- git commit -m "Some Comment" // Prepare for push
- git push // you are sending all chosen changes to your repository
- git pull
- git add . --all // Removes everything from repository and replaces it with your folder
- git status // Shows changes you are about to commit
- git commit -m "Some Comment" // Prepare for push
- git push // You are sending all chosen changes to your repository
- git checkout -b branchname
- git branch -d branchname
- git checkout master
- git merge branchname