Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git-command
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
git
git-command
Commits
589222e0
Commit
589222e0
authored
Sep 13, 2018
by
无尘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add README.md
parents
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
45 additions
and
0 deletions
+45
-0
README.md
README.md
+45
-0
No files found.
README.md
0 → 100644
View file @
589222e0
# git-command
## 简单的命令
Command line instructions
-
Git global setup
```
git config --global user.name "yourName"
git config --global user.email "yourEmail"
```
-
Create a new repository
```
git clone git@115.159.76.241:git/git-command.git
cd git-command
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
```
-
Existing folder
```
cd existing_folder
git init
git remote add origin git@115.159.76.241:git/git-command.git
git add .
git commit -m "Initial commit"
git push -u origin master
```
-
Existing Git repository
```
cd existing_repo
git remote rename origin old-origin
git remote add origin git@115.159.76.241:git/git-command.git
git push -u origin --all
git push -u origin --tags
```
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment