close

> git status

> git add main.py

> git commit

 

> git log

> git tag -a v1.3 7cbc01b27c44699

> git push origin v1.3

 

c:\pygame\game>git add main.py

c:\pygame\game>git add "object rectangle.JPG"

c:\pygame\game>git status
On branch main
Your branch is ahead of 'origin/main' by 2 commits.
(use "git push" to publish your local commits)

Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: main.py
new file: object rectangle.JPG


c:\pygame\game>git commit
[main f90ac58] 2:59 pm. Aug 31, 2021 Add a single rock into the game
2 files changed, 18 insertions(+)
create mode 100644 object rectangle.JPG

c:\pygame\game>git log
commit f90ac58e14a84d3058bf207192de569fd4768b39 (HEAD -> main)
Author: me1237guy <me1237guy@yahoo.com.tw>
Date: Tue Aug 31 14:58:50 2021 +0800

2:59 pm. Aug 31, 2021
Add a single rock into the game

commit b8ef2886e3526c800246e4a0182be75c45d89a50
Author: me1237guy <me1237guy@yahoo.com.tw>
Date: Tue Aug 31 14:10:37 2021 +0800

31 Aug, 2021

1. Add a control of player by pressing left or right button
2. Limit its horizontal boundary

commit 7cbc01b27c44699b902f68210e6a03db441a6d45 (tag: v1.3, tag: v1.2)
Author: me1237guy <me1237guy@yahoo.com.tw>
Date: Mon Aug 30 21:53:44 2021 +0800

The first sprite object

commit 4c5b3628d09b9bf435b3c9fc76fbb18d61c6bd82 (tag: v1.1, origin/main)
Author: me1237guy <me1237guy@yahoo.com.tw>
Date: Mon Aug 30 15:37:22 2021 +0800

change window caption

commit 2481e078087d33052dfe5a315d3ae1acdb6cbcf8 (tag: v1.0)

c:\pygame\game>git tag -a v1.4 f90ac58e14a84d30

c:\pygame\game>git push origin v1.4
Enumerating objects: 10, done.
Counting objects: 100% (10/10), done.
Delta compression using up to 8 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 14.97 KiB | 1.36 MiB/s, done.
Total 8 (delta 3), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (3/3), completed with 2 local objects.
To https://github.com/me1237guy/game.git
* [new tag] v1.4 -> v1.4

v1.4

v1.5

 v1.6

c:\pygame\game>git push origin v1.9.3
Enumerating objects: 6, done.
Counting objects: 100% (6/6), done.
Delta compression using up to 8 threads
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 1.43 KiB | 209.00 KiB/s, done.
Total 4 (delta 2), reused 0 (delta 0), pack-reused 0
remote: Resolving deltas: 100% (2/2), completed with 2 local objects.
To https://github.com/me1237guy/game.git
* [new tag] v1.9.3 -> v1.9.3

c:\pygame\game>git push origin
Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
To https://github.com/me1237guy/game.git
a546d00..058d5ec main -> main

 

 

 

References:

1. https://youtu.be/61eX0bFAsYs

2. https://www.pygame.org/docs/

arrow
arrow
    全站熱搜

    me1237guy 發表在 痞客邦 留言(0) 人氣()