manjaro使用心得 / 中文(注音)輸入法調整
  最近決定要將正式從windows畢業,投入linux的懷抱。在接受擁抱前,我決定先用虛擬機測試,寫下調整環境的方法。    
 下載完git,也有了github的帳號,卻不知道要如何開始使用的話,可以依照以下步驟,輕鬆開始版本控制。
下載完git,也有了github的帳號,卻不知道要如何開始使用的話,可以依照以下步驟,輕鬆開始版本控制。 而非git gui。開啟git bash,在命令列輸入:
而非git gui。開啟git bash,在命令列輸入:git
README.md的選項,接著在本地用git clone將Repository複製下來。git clone之前,先選定要在哪個資料夾中放置你的所有repository,並在命令列中開啟該位置。git clone https://github.com/[yourAccount]/[RepositoryName].git
git clone [協定]://[github網站名]/[帳號]/[倉庫名].[副檔名]
ls
cd [RepositoryName]
ls -a
.git就記錄了這個repository的版本紀錄等等的資訊,別隨意刪除或更動。git status 
git status指令在準備同步檔案時常用,不僅會提醒你許多指令的使用方法,同時也可以看現在的檔案狀態。On branch master
Your branch is up to date with 'origin/master'.
nothing to commit, working tree clean
.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:   b
Changes not staged for commit:
  (use "git add/rm <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)
        modified:   README.md
        deleted:    b
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        x
git add .將所有變動一次包含在這次要同步或著說commit的動作。git add .
git commit -m將這次做了什麼事統一概括敘述一下。git commit -m "[message]"
"[message]"替換成你的敘述,例如:git commit -m "added x file, deleted b file, and modified Readme.md"
git push將本次的更動同步到遠端(github上的repository)的主支(master)上git push origin master
git push進度條跑完後,可以去github網站上確認這次的commit是否有被記錄到。git pull一路到底git pull origin master 
git fetch兩步到底git fetch origin master
git merge
留言
張貼留言