# 建構 u-boot remote本地倉庫(loacl repository) ### 分三大步驟: ## (一)新增 git 使用者 並給予sudo權限 1. sudo su #切換到root 2. adduser git #新增使用者 3. sudo adduser git sudo #將使用者 "git" 加入到 "sudo" 群組中 4. su git #切換到git user ## (二)設立本地倉庫(local repo) (已切換到git user) 1. sudo mkdir -p /srv/git/u-boot-hd.git 2. sudo chmod 777 /srv/u-boot-hd.git 3. cd /srv/git/u-boot-hd.git 4. git init --bare #初始化空的Git版本庫 ## (三)將u-boot hundure-hac990 branch 推入本地倉庫(local repo) 1. git clone https://github.com/TechNexion/u-boot-tn-imx.git 2. cd u-boot-tn-imx 3. git checkout -b hundure-hac990 #建立分支 hundure-hac990 4. git remote add local git@your_MachineName:/srv/git/u-boot-hd.git #建立一個名叫local的remote repo 5. git push local hundure-hac990 #make sure SSH server is running,
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up