fenlan

Everything gonna be fine in the end, if it's not fine, it's not the end.

0%

Git install and setting

git install and setting:

1
2
3
$ git config --global user.name "name"
$ git config --global user.email "email"
$ git config --global color.ui auto

and then create a new directory as tutorial

1
2
3
$ mkdir tutorial
$ cd tutorial
$ git init

then create a new file as text.txt

1
2
3
4
5
6
$ git status
$ git add text.txt
$ git status
$ git commit -m "text"
$ git status
$ git log

next to rename the “https://…….” as origin

1
2
3
$ git remote add origin https://.........(do this only the first time)
$ git push -u origin master(the first time)
$ git push -u origin(do this the next time)

do clone

1
$ git clone https://....... tutorial2(a new directory)

do pull file in your date-base

1
2
$ git pull origin master
$ git log

finally do another setting to make it better,but I meet a problem.
So I stop it temporarily,continue it if I have time.