登入碼雲git
新建一個上傳的項目 github
配置tomcat tomcat
啓動訪問8080eclipse
配置termialssh
新增兩個文件maven
忽略 gitignore文件內容ide
*.class #package file *.war *.ear #kdiff3 ignore *.orig #maven ignore target/ #eclipse ignore .settings/ .project .classpath #idea .idea/ /idea/ *.ipr *.iml *.iws # time file *.log *.cache *.diff *.path *.tmp
git 經常使用的一些指令idea
$ git initspa
$ git status 能夠看到那些文件發生變化.net
$ git add . 添加進來
$ git status 查看 添加進來
$ git commit -am 'first commit init project'
$ git config --global user.email "you@example.com"
$ git config --global user.name "Your Name"
$ git remote add origin git@git.oschina.net:hudj/mmall_learning.git
$ git branch 查看分支
爲github賬號添加SSH keys
$ ssh-keygen
/c/Users/Administrator/.ssh/id_rsa 找到盤下複製
push
Git pull
Git push -u origin master
Git push -u -f origin master
$ git checkout -b v1.0 origin/master
建立分支
$ git push origin HEAD -u
推送分支
查看分支