0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

当日の作業分を日付で分岐を切ってGITHUBへ投稿(備忘録)

Posted at

GITHUB

OS自作をしており区切りのいいところでGITHUBへ上げているのですが、毎回やり方を忘れるので記録しておきます。
https://github.com/ooe1220/sourouOS/tree/20250722

操作

图片.png

test@test-ThinkPad-X280:~/kaihatsu/sourouOS$ git checkout -b 20250722
切换到一个新分支 '20250722'
test@test-ThinkPad-X280:~/kaihatsu/sourouOS$ git push -u origin 20250722
总共 0(差异 0),复用 0(差异 0),包复用 0
remote: 
remote: Create a pull request for '20250722' on GitHub by visiting:
remote:      https://github.com/ooe1220/sourouOS/pull/new/20250722
remote: 
To github.com:ooe1220/sourouOS.git
 * [new branch]      20250722 -> 20250722
分支 '20250722' 设置为跟踪来自 'origin' 的远程分支 '20250722'。
test@test-ThinkPad-X280:~/kaihatsu/sourouOS$ git branch
  20240624
  20250625
  20250628
  20250707
* 20250722
  master
test@test-ThinkPad-X280:~/kaihatsu/sourouOS$ git remote -v
origin	git@github.com:ooe1220/sourouOS.git (fetch)
origin	git@github.com:ooe1220/sourouOS.git (push)
test@test-ThinkPad-X280:~/kaihatsu/sourouOS$ git status
位于分支 20250722
您的分支与上游分支 'origin/20250722' 一致。

尚未暂存以备提交的变更:
  (使用 "git add <文件>..." 更新要提交的内容)
  (使用 "git restore <文件>..." 丢弃工作区的改动)
	修改:     command/run.asm
	修改:     exec.sh
	修改:     kernel.asm

未跟踪的文件:
  (使用 "git add <文件>..." 以包含要提交的内容)
	debug.asm

修改尚未加入提交(使用 "git add" 和/或 "git commit -a")
test@test-ThinkPad-X280:~/kaihatsu/sourouOS$ git add .
test@test-ThinkPad-X280:~/kaihatsu/sourouOS$ git commit -m "レジスタの値確認関数作成" 
[20250722 f74a35c] レジスタの値確認関数作成
 4 files changed, 73 insertions(+), 2 deletions(-)
 create mode 100644 debug.asm
test@test-ThinkPad-X280:~/kaihatsu/sourouOS$ git push -u origin 20250722
枚举对象中: 12, 完成.
对象计数中: 100% (12/12), 完成.
使用 8 个线程进行压缩
压缩对象中: 100% (7/7), 完成.
写入对象中: 100% (7/7), 1.00 KiB | 514.00 KiB/s, 完成.
总共 7(差异 4),复用 0(差异 0),包复用 0
remote: Resolving deltas: 100% (4/4), completed with 4 local objects.
To github.com:ooe1220/sourouOS.git
   e33926f..f74a35c  20250722 -> 20250722
分支 '20250722' 设置为跟踪来自 'origin' 的远程分支 '20250722'。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?