git Flashcards

1
Q

how to create a new project and add it to git, upload to github?

A

git initgit add .git commit -m “initial commit”create a repository on github.comgit remote add origin git@github.com:Luxiyalu/demo_app.gitgit push -u origin master

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

switch to branch “master”

A

git checkout master

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

merge current branch and branch “x”

A

git merge x

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

delete branch

A

git branch -d

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

只装本地bundle

A

bundle install –without production

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

所有改动提交push,msg为:”msg”

A

git commit -a -m “msg”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly