# Final Project Git
## Clone
```cpp=
//clone url => https://github.com/HowardHuang1225/Final_Project_10.git
git clone <url>
git checkout -b <your name> //create new branch
git branch //check their exists new branch
// Now can start your coding
// switch the branch
git checkout <target>
```
## Push
```cpp=
// Remamber to add the commit to any of your change
git add * //add all the extra file to git
git commit -m "<your commit>" //add commit to your change
git push
// if the branch is the new one you should change the last code to the below
git push –u <URL> <branch_name>
git push --set-upstream origin <branch_name>
```
## Pull
```cpp
git pull //will pull the latest changes.
git fetch --all//will update the list of changes.
git branch -r //list all branch
git checkout -b <branch_name> origin/<branch_name> // copy <branch_name> file
git status //will check the status of the repo. Without the fetch first, you will not see remote changes.
```