-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Chris Achenbach edited this page Feb 21, 2020
·
8 revisions
Welcome to the planetary-config-react wiki!
To install developer dependencies onto your computer:
npm install --only=devTo install webpack:
npm install --save-dev webpack
npm install --save-dev webpack-cli| description | command |
|---|---|
| Prints out history of commits with a graph that shows merges: | git log --oneline --decorate --graph --all |
| Revert your directory back to latest commit (destroys uncommitted changes) | git reset --hard HEAD |
| Download changes other people have pushed | git fetch |
| Download changes & Update your Repo to the latest commit | git pull |
| description | command |
|---|---|
List the branches (with a * next to your current branch) |
git branch |
| Move to a different branch | git checkout <branchname> |
| Create new branch & move to it | git checkout -b <newbranchname> |
If there are other branches on the github repo, you can fetch all the information by using
git fetch --all
You can list them all by using,
git ls-remote
And if you want to edit on somebody's branch, you need to create your own local copy of the branch. For example, if the branch is named BranchName, here's how you do it:
git checkout -b BranchName origin/BranchName
In General...
- Set your current branch to the "destination" of the merge using
git checkout. git merge <BRANCH>- If (no conflicts), jump to step #5
- Manually change files to resolve conflicts.
-
git committo finalize the merge.
Whats is this stuff that git added to my file
<<<<<<< HEAD
code on current branch.
=======
code on the other branch.
>>>>>>> testing
| description | command |
|---|---|
| Delete a Local Branch | git branch --delete <branch> |
| Delete a Branch located on a Remote Machine | git push origin --delete <branch> |
ATOM Editor has a built-in plugin for git that helps visualize the merge conflicts.
