最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【记录】用git开发ST播放器CrifanSongtastePlayer

Git crifan 2045浏览 0评论

之前是把代码放到google code上的,现在打算换到OSChina的git上。

https://git.oschina.net/crifan/CrifanSongtastePlayer.git

crifan@E550-Crifan MINGW64 ~
$ cd /e/
$RECYCLE.BIN/              Dev_Install/               found.000/                 tmp/
CloudMusic/                Dev_Root/                  KuGou/                     todel/
Config.Msi/                Dev_Tools/                 StormMedia/                迅雷下载/
Dev_Doc/                   DTLFolder/                 System Volume Information/

crifan@E550-Crifan MINGW64 ~
$ cd /e/Dev_Root/js/CrifanSongtastePlayer/

crifan@E550-Crifan MINGW64 /e/Dev_Root/js/CrifanSongtastePlayer
$ ls

crifan@E550-Crifan MINGW64 /e/Dev_Root/js/CrifanSongtastePlayer
$ cd ..

crifan@E550-Crifan MINGW64 /e/Dev_Root/js
$ ls
CrifanSongtastePlayer /

crifan@E550-Crifan MINGW64 /e/Dev_Root/js
$ pwd
/e/Dev_Root/js

crifan@E550-Crifan MINGW64 /e/Dev_Root/js
$ git clone https://git.oschina.net/crifan/CrifanSongtastePlayer.git
Cloning into ‘CrifanSongtastePlayer’…
Username for ‘https://git.oschina.net/’: [email protected]
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
Checking connectivity… done.

crifan@E550-Crifan MINGW64 /e/Dev_Root/js
$

然后就可以去写代码了。

先去配置git:

Windows 系统下Git安装图解 | Drupal中国

再去上传文件:

Last login: Mon Mar 28 23:19:47 on ttys005
bogon:CrifanSongtastePlayer crifan$ git clone https://git.oschina.net/crifan/CrifanSongtastePlayer.git
Cloning into ‘CrifanSongtastePlayer’…
remote: Counting objects: 3, done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Unpacking objects: 100% (3/3), done.
Checking connectivity… done.
bogon:CrifanSongtastePlayer crifan$ git add .
fatal: Not a git repository (or any of the parent directories): .git
bogon:CrifanSongtastePlayer crifan$ git add *
fatal: Not a git repository (or any of the parent directories): .git
bogon:CrifanSongtastePlayer crifan$ ls
CrifanSongtastePlayer ref
bogon:CrifanSongtastePlayer crifan$ cd CrifanSongtastePlayer/
bogon:CrifanSongtastePlayer crifan$ git add .
bogon:CrifanSongtastePlayer crifan$ git status
On branch master
Your branch is up-to-date with ‘origin/master’.
Changes to be committed:
  (use "git reset HEAD <file>…" to unstage)

new file:   main.html

bogon:CrifanSongtastePlayer crifan$ git push origin master
Everything up-to-date
bogon:CrifanSongtastePlayer crifan$ git status
On branch master
Your branch is up-to-date with ‘origin/master’.
Changes to be committed:
  (use "git reset HEAD <file>…" to unstage)

new file:   main.html

bogon:CrifanSongtastePlayer crifan$ git commit -m "support got st url return html"
[master da36fd9] support got st url return html
 1 file changed, 105 insertions(+)
 create mode 100644 main.html
bogon:CrifanSongtastePlayer crifan$ git push origin master
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 1.81 KiB | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://git.oschina.net/crifan/CrifanSongtastePlayer.git
   0844cd6..da36fd9  master -> master
bogon:CrifanSongtastePlayer crifan$ ls -la
total 32
drwxr-xr-x   6 crifan  staff   204  3 29 18:06 .
drwxr-xr-x   5 crifan  staff   170  3 29 18:06 ..
-rw-r–r–@  1 crifan  staff  6148  3 29 18:06 .DS_Store
drwxr-xr-x  14 crifan  staff   476  3 29 18:08 .git
-rw-r–r–   1 crifan  staff    24  3 29 18:06 README.md
-rw-r–r–   1 crifan  staff  3568  3 26 15:58 main.html

bogon:CrifanSongtastePlayer crifan$

以后就可以正常开发。

然后用git上传更新后的代码了。

转载请注明:在路上 » 【记录】用git开发ST播放器CrifanSongtastePlayer

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
83 queries in 0.166 seconds, using 22.11MB memory