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
2
Q
switch to branch “master”
A
git checkout master
3
Q
merge current branch and branch “x”
A
git merge x
4
Q
delete branch
A
git branch -d
5
Q
只装本地bundle
A
bundle install –without production
6
Q
所有改动提交push,msg为:”msg”
A
git commit -a -m “msg”