git安装和配置

从https://git-scm.com/download/win下载git

其他默认

安装完成后,在任意的文件目录下,右键都可以开打Git的命令行窗口——Git Bash Here

设置全局用户签名

  git config --global user.name "用户名"

  git config --global user.email "用户邮箱"

在当前登录的系统用户路径下,生成~/.gitconfig隐含文件,里面可以看到刚刚设置的信息。如果不用命令设置,也可以直接打开文件进行设置。

 

 

 

 

 

# Compiled class file
*.class
 
# Log file
*.log
 
# 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*
 
.classpath
.project
.settings
target
.idea
*.iml

 

 

git config --global user.name "WangKun"
git config --global user.email "511332544@qq.com"

#mkdir template
#cd template
git init 
touch README.md
git add README.md
git add .
git commit -m "first commit"
git remote add origin https://gitee.com/WKLoveStudy/template.git
git push -u origin "master"

#查看删除远程仓库
git remote -v
git remote rm origin

  

 

posted @ 2022-04-23 15:14  坤王  阅读(77)  评论(0)    收藏  举报