run git clone https://github.com/ieee-ateith-sb/new_webpage.git
to copy the project.
run cd ./ieeewebsite
to set the project directory as the working directory.
run npm install
to install all required dependencies.
run npm start
to start the react project.
To make changes to the project you have to
- create a new local branch
- push changes to that branch
- make a pull request
run git branch [new_branch_name]
to create a branch and git checkout [new_branch_name]
to set it as active.
or
run git checkout -b [new_branch_name]
to create and checkout to that branch immediately.
make your changes
run git add [file_name] [file_name_2] [etc]
to add files to staging area
run git status
to make sure all desired changes has been added correctly
run git commit -m "[a brief description]"
to commit the changes
run git push [own_repository_name] [branch_name]
to push changes to your own repository
Go to github and create a new pull request.
run git fetch [remote name] demo
to download the demo
the remote name is the ieee-ateith-sb remote repo name.
Remember that current branch has to be clean to checkout to another. See at troubleshooting how to overcome this.
run git checkout demo
to change to the demo branch.
when you want to go back to master
run git checkout master
If you want to checkout to another branch, but the current branch is not clean.
You can git stash
the current changes (save them).
checkout to another branch, come back to this one
and git stash apply
to "paste" them again.
To list remote repositories run git remote -v
.
To add a new remote repository run git remote add [name] [link]
.
To delete a remote repository run git remote remove [name]
.