Files
interprogram/README.md
2025-08-31 12:10:12 +08:00

952 B
Raw Permalink Blame History

interprogram

Git 仓库初始化与推送指南

1. Git账号、密码

Git 账号和密码信息请在“工程实践项目管理” - “我的项目”模块中的“我的信息”处查看。 

2. 创建新的 Git 仓库并推送

# 创建项目目录并进入 
mkdir interprogram 
cd interprogram 
# 初始化本地 Git 仓库 
git init 
# 创建一个 info 文件(可选) 
touch info.md 
# 将文件添加到暂存区 
git add info.md 
# 提交到本地仓库 
git commit -m 'first commit' 
# 添加远程仓库地址(别名为 origin 
git remote add origin http://college.ithyxy.com:21147/0011/interprogram.git 
# 推送到远程仓库的 admin 分支,并设置上游跟踪 
git push -u origin 'admin' 

3. 已有仓库?

cd existing_git_repo 
git remote add origin http://college.ithyxy.com:21147/0011/interprogram.git 
git push -u origin 'admin'