×

git

记一次码云上开通git仓库后,把本地项目push到远程仓库

我的笔记 我的笔记 发表于2019-07-26 17:41:59 浏览3034 评论0

抢沙发发表评论


简易的命令行入门教程:


Git 全局设置:

git config --global user.name "付亚东"
git config --global user.email "yadong.si@foxmail.com"

创建 git 仓库:

cd smart_web_im
git init
git add .
git commit -m "初次提交"
git remote add origin  
git push -u origin master

已有仓库?

cd existing_git_repo
git remote add origin  https://gitee.com/upyadong/netty_demo.git
git push -u origin master


其中,在记一下.gitignore文件中的内容,有好多朋友都不太懂这个文件的具体含义,我就贴出来吧

# Created by .ignore support plugin (hsz.mobi)
### Example user template template
### Example user template

# IntelliJ project files
.idea
*.iml
out
gen### Java template
# Compiled class file
*.class

# Log file
*.log
logs
# BlueJ files
*.ctxt

# Mobile Tools for Java (J2ME)
.mtj.tmp/

# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*

target


我的笔记博客版权我的笔记博客版权