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

31 lines
952 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# interprogram
# Git 仓库初始化与推送指南
## 1. Git账号、密码
```bash
Git 账号和密码信息请在“工程实践项目管理” - “我的项目”模块中的“我的信息”处查看。
```
## 2. 创建新的 Git 仓库并推送
```bash
# 创建项目目录并进入
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. 已有仓库?
```bash
cd existing_git_repo
git remote add origin http://college.ithyxy.com:21147/0011/interprogram.git
git push -u origin 'admin'
```