https://github.com/casprwang/git-it
A 2017-ish way to efficiently set up a standard git repo
https://github.com/casprwang/git-it
Last synced: 7 months ago
JSON representation
A 2017-ish way to efficiently set up a standard git repo
- Host: GitHub
- URL: https://github.com/casprwang/git-it
- Owner: casprwang
- License: mit
- Created: 2017-01-08T19:00:24.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-01-08T19:50:07.000Z (almost 9 years ago)
- Last Synced: 2025-02-02T01:41:35.507Z (8 months ago)
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# use git -rebase to set up a less messy git repo
### Example for a Node project
1. add a new repo on github website
2. add gitginore and LICENSE in the setup page
3. copy the git URL on your repo page
4. `mkdir` and `cd` to you project
5. `npm init` and input your project name and git link and stuff
6. `git remote add {remote name} {URL}`
7. `git pull --rebase {remote name} {branch name || master}`
8. terminal:
```
$ git add .
$ git commit -m ''
$ git push {remote name} {branch}
```### benefits
* no need to write `.gitignore`
* setup remote name
* less confilcts