For information regarding the boilerplate, visit https://github.com/jakemmarsh/angularjs-gulp-browserify-boilerplate
cd [directoryName]
will change directory todirectoryName
.- For example if working in ~
cd Documents/Programming
will change the working directory to ~/Documents/Programming - For example if working in ~/Documents/Programming
cd ..
will change the working directory to ~/Documents
- For example if working in ~
ls -a
will list all files and directories in the working directory.
- Never commit directly on
master
. Always create a separate branch, with a name that is mapped to the issue you are working on. For example, when working on issue #39, then create a new branch withgit checkout -b [branch-name]
and name the branchissue-39
. - Do your changes to the files. Commit and push them to GitHub
git add [filename]
(orgit add .
if you want to add all the files)git commit -m "Commit message goes here"
If you happen to forget the-m
you will open the VIM editor. You can exit this buy writing:q
and then pressingENTER
git push
- When you have commited and pushed changes on a development branch, make sure you have your code reviewed by someone in the team who have not written nor been helping you with the code. If possible, the code should also be black-box tested by someone without insight in the code and must be someone who did not review the code.
- When code review and tests have passed, you can merge your code into the master branch.
- As soon as your code has been merged to master and everything is working as intended, make sure you close the issue and delete the branch.
NOTE: To switch branches during development, use git checkout [branch-name]
. Although, remember to either stash or commit your changes before it, or otherwise your changes will be moved to the branch you are switching to. To list your local branches, use git branch
.