碼雲,git使用 教程


 


碼雲,git使用 教程

code cloud, git use tutorials


作者:韓夢飛沙

Author:han_meng_fei_sha


 

郵箱:313134555@qq.com

E-mail: 313134555 @qq.com


 

 

新建項目

new project

 

 

路徑沒辦法用中文哦。

There is no way to use Chinese.

 

 

 類似這樣創建一個項目

Create a project like this

 

 

需要下載 安裝git。不會git 就有些煩了。

You need to download and install git.Not git is a bit boring.

 

網上大多教程是命令的方式,感覺好煩。

Most of the tutorials on the web are the way to command, and it's annoying.

 

這里用的是 可視化的界面,簡單,體驗好。

This is a visual interface, simple, good experience.

 

電腦是64位, 所以

The computer is 64 bits, so

 

百度搜索Git-2.8.2-64-bit.exe  下載 安裝【一路默認即可】。

Baidu search Git - 2.82-64-bit.exe for download installation.  [all the way by default]

 

搜索 TortoiseGit-2.1.0.0-64bit.msi  下載 安裝【一路默認即可】。

Search for TortoiseGit - 2.1.0.0-64bit. Msi download installation   [all the way by default]

 

安裝語言包TortoiseGit-LanguagePack-2.1.0.0-64bit-zh_CN.msi【一路默認即可】。

Install the language pack tortoisegit-languagepack-2.1.0.0-64bit-zh_cn.msi.  [all the way by default]

 

安裝完tortoiseGIT不需要重啟電腦。

After installing tortoiseGIT, you do not need to restart your computer.

 

安裝完Git-2.8.2-64-bit.exe之后 可以發現 有Git Bash 這個功能,這個就可以敲寫 教程上的那些命令。

After you have installed Git - 2.8.2-64-bit.exe, you can find that you have Git Bash, which can be used to write the commands in the tutorial.

 

安裝完tortoiseGIT ,需要在設置里改一下,切換語言,為簡體中文。

After installing tortoiseGIT, I need to change it in the Settings to switch the language to simplified Chinese.

 

這里 可以用 可視化的界面,不用敲命令。

Here you can use a visual interface without typing.


 

 

 

我們可以用命令來操作。

復制這兩行命令。

We can operate with commands. 

Copy these two line commands.

 

git config --global user.name "韓亞飛_韓夢飛沙"

git config --global user.email "313134555@qq.com"

 

 在我們的工程目錄下。選擇 git bash here

It's in our engineering catalogue 。Select git bash here

 

 

 粘貼 命令

Paste command

 

 

 然后就像這樣,命令直接就執行成功了。

Then, like this, the command executes directly.

 

 

我們可以在 設置中看到 全局 已經有命令執行后的數據了。

We can see in Settings that the global command has been executed.

 

 

這兩個數據,我們可以在提交的時候用到。 用來設置作者。

These two data, we'll use it at the time of submission.Used to set the author.

 

 

 

選擇 Git 在這里創建版本庫

Select Git submission (C) - > "master"...

 

 

點擊確定 確定

Click ok

 

 

選擇 Git 提交(C)->”master”…

Select Git submission (C) - > "master"...

 

 

在這個頁面可以選擇 未版本控制, 選中全部文件,然后提交。

On this page you can select the unversioned control, select all the files, and submit.

 

提交成功后,我們可以點擊推送。

After the submission is successful, we can click on the push.

 

 

選擇 管理

Choose management

 

 

彈出這樣的窗口。 我們填寫 遠程項目的url 地址。可以起個名字。類似這樣。

Pop-up Windows like this.We fill in the url of the remote project.You can have a name.Like this 

打開網站。復制 遠程項目的url 地址 鏈接。類似我這個

Open the site. Copy the url of the remote project url. Like me

 

https://git.oschina.net/han_meng_fei_sha/XingDianTong.git

 

添加好了,然后選擇 遠端的 項目。

Add it, and then select the remote project.

 

點擊確定。我們推送到 遠端 。

Click ok.We push it to the far end.

 

然后像這樣 代表成功了。這個信息框里面的內容 注意一下。

And then it would be successful.Notice the contents of this information box.

 

 

推送成功后,我們可以在網站上刷新后 看到類似這樣的效果。

After the push is successful, we can see similar results after we refresh the site.


 

 

我們可以也選擇git同步…   來 提交,推送 等。

We can choose git synchronization...   To submit, push, etc.

 

 


 

創建分支  。 類似這樣

Create a branch.Like this

 

 

切換分支。 類似這樣。

Switch branches.Something like that.

 

 

現在提交 變成了提交到我們新創建的那個分支。 類似這樣。

Now the submission becomes the branch submitted to our newly created branch.Something like that.

 

提交到分支。

Commit to the branch.

 

 

提交成功。我們可以點擊推送,更新我們的網站上項目的對應分支。

Submission of success.We can click on the push to update the corresponding branch of the project on our website.

 

 

引用框 下的 遠端 填寫 我們要在遠端 用的分支 名字。

 The far end of the reference box fills out the branch name we want to use at the remote end.

 

 

像這樣。

Like this.

 

 

成功了。我們看一下網站有沒有效果。

A success.Let's see if the site works.

 

 

網站 有這樣的效果。成功。

The website has this effect.Success.


 

拉請求 我們用網站上的 就行了。不用軟件上的 拉請求。

We use the pull request on the website.No software pull requests.

 

像這樣已經創建好了一個 拉請求。

 A pull request has been created like this. 

 

 

拉請求,就是創建一個 請求,用於將某個分支合並到另一個分支上。 請求通過之后,就合並了。 像這樣。

The pull request is to create a request to merge one branch to another.After the request is passed, the merge is done.Like this.


 

Tags 我們也用網站上的就行了。不用軟件上的標簽。

Tags we use the website.Don't use software labels.

 

標簽就是版本號。

我們創建一個標簽,名字是v1.0.

The label is the version number.

We create a label, which is v1.0.

 

 

 

  

創建完成之后我們下載。發現它的結尾默認是這樣的。我們需要這個效果。

After the creation is complete, we download it.The default is this.We need this effect.


 

 

在網站的 開源項目 下,我們可以選擇 最新更新, 看到我們的項目。

Under the open source project of the website, we can choose the latest update and see our project.

 

 

 

通過 碼雲 我們可以查看動態。

We can view the dynamic through the code cloud.


 

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM