Version control with Git:

1) Register at GitLab web site; change member permission upon Maintainer.
2) Download and install Git for Windows.
3) Generate SSH key: C:\Users\yourname.ssh\id_rsa, id_rsa.pub (Git Bash => $ ssh-keygen -t rsa -C “user1@company1.tw" => Enter passphrase).
4) GitLab web site => User Settings => SSH Keys => Paste id_rsa.pub data.
5) Download and install Sourcetree for Windows.
6) Sourcetree => Tools => Options => General => SSH Client Configuration (use OpenSSH).
7) Create Project1 under your group on GitLab web site.
8) Create folder D:\Company1\SourceCode\category1\Project_1\
9) Git global setup (Git Bash => git config –global user.name “Your Name" => git config –global user.email “yourname@company1.tw").
10) Cpoy project1 url on GitLab web site (Clone with SSH).
11) Sourcetree => Clone.
12) Add Project1 source code files in the folder.
13) Add .gitingore file (for Visual Studio) in the folder.
14) Sourcetree => commit: Initial commit.
15) Sourcetree => Push => master.

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com 標誌

您的留言將使用 WordPress.com 帳號。 登出 /  變更 )

Google photo

您的留言將使用 Google 帳號。 登出 /  變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 /  變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 /  變更 )

連結到 %s