git 操作

来源:互联网 发布:电力系统scada 数据 编辑:程序博客网 时间:2024/04/26 05:51
git 操作

修改提交到git代码中的用户名  
1、终端进入项目所在的文件夹 (checkOut 后要重新修改)

appledeMacBook:app-apple huyajun$ ls

com.tomtop.shoppingmall

appledeMacBook:app-apple huyajun$ ls -all

total 16

drwxr-xr-x   5 huyajun  staff   170  6 14 22:03 .

drwxr-xr-x   4 huyajun  staff   136  6 14 22:02 ..

-rw-r--r--@  1 huyajun  staff  6148  6 14 22:03 .DS_Store

drwxr-xr-x  16 huyajun  staff   544  6 18 10:58 .git

drwxr-xr-x   6 huyajun  staff   204  6 12 15:39 com.tomtop.shoppingmall

appledeMacBook:app-apple huyajun$ git config user.name "胡亚军"

appledeMacBook:app-apple huyajun$ git config user.email "2853375204@qq.com”


1、       命令行方式:

在桌面新建一个文件夹   app1

在终端进入改文件夹

输入指令: git init

     git pull https://192.168.0.70/app-apple/app-apple.git  

2、         新建一个Xcode新项目 

source Control  ->  check out 

3、         熟悉常用的 git 指令 

 

0 0