Development FOr the first time only pull the code and install the packages locally
git clone git@github.com:Pradyumnakashyap/iosl-dc3.git
npm install
npm start
after that every time, just run git pull
to get latest
git pull
git branch newbranchName #create a new branch for the task you want to work on
git push # once changes are complete, do the git push and then we will merge
Build
npm run build
git clone URL #to copy the repo
Git status #changed files in local repo
git diff #changes to tracked files
git add . #add all the files to next commit or stage them
git reset filename #
git commit #commit staged changes
git commit -a #commit all changed files
git checkout <branch> #switch to different branch
git branch #will show the branch
git branch newbranchName #create a new branch from the current commit
git diff branchB...branchA #diff of what is in A that is not in B
Git checkout develop
git pull origin develop #git pull from the origin
git checkout branchName
git merge develop #for conflicts, do #gitstash and then merge and then git stash pop
git push
https://education.github.com/git-cheat-sheet-education.pdf
we need to do these 3 things after you already got the code on your local machine
git commit -a -m "what are the changes you did"
git push
IOSL Team