[Contents] [TitleIndex] [WordIndex

Global GIT configuration

[$SHELL] git config --global user.name "John SMITH"
[$SHELL] git config --global user.email "john.smith@scilab.org"

Get the Scilab GIT repository & configure it

[$SHELL] git clone ssh://john.smith@git.scilab.org:29418/scilab
. Initialized empty Git repository in /home/smith/scilab/.git/
. remote: Counting objects: 596180, done
. remote: Compressing objects: 100% (596180/596180)
. Receiving objects: 100% (596180/596180), 219.48 MiB | 592 KiB/s, done.
. Resolving deltas: 100% (448379/448379), done.
. Checking out files: 100% (30315/30315), done.
[$SHELL] cd /home/smith/scilab

[$SHELL] git branch uicontrol origin/uicontrol
. Branch uicontrol set up to track remote branch uicontrol from origin.

[$SHELL] git checkout uicontrol
. Switched to branch 'uicontrol'

[$SHELL] scp -p -P 29418 john.smith@git.scilab.org:hooks/commit-msg .git/hooks/
[$SHELL] git config branch.uicontol.rebase true
[$SHELL] git config remote.origin.push uicontrol:refs/for/uicontrol

[$SHELL] git branch -D master
. Deleted branch master (was c8450cc).

You first commit

[$SHELL] nano scilab/CHANGES
[$SHELL] touch scilab/newfile.txt

[$SHELL] git status
. # On branch uicontol
. # Changed but not updated:
. #   (use "git add <file>..." to update what will be committed)
. #   (use "git checkout -- <file>..." to discard changes in working directory)
. #
. #     modified:   scilab/CHANGES
. #
. # Untracked files:
. #   (use "git add <file>..." to include in what will be committed)
. #
. #     scilab/newfile.txt
. no changes added to commit (use "git add" and/or "git commit -a")

[$SHELL] git add scilab/CHANGES scilab/newfile.txt

[$SHELL] git status
. # On branch uicontol
. # Changes to be committed:
. #   (use "git reset HEAD <file>..." to unstage)
. #
. #     modified:   scilab/CHANGES
. #     new file:   scilab/newfile.txt
. #

[$SHELL] git commit -m "My first commit"
. [uicontrol 46d29c0] My first commit
.  1 files changed, 1 insertions(+), 0 deletions(-)
.  create mode 100644 scilab/newfile.txt

[$SHELL] git log -n 1
. commit 46d29c0d0dca6621809d9b147879fac1c9265caa
. Author: John SMITH <john.smith@scilab.org>
. Date:   Tue May 25 23:34:35 2010 +0200
. 
.    My first commit

Send your commit to the origin repository

[SHELL] git push
.Counting objects: 15, done.
.Compressing objects: 100% (8/8), done.
.Writing objects: 100% (8/8), 643 bytes, done.
.Total 8 (delta 6), reused 0 (delta 0)
.To ssh://john.smith@git.scilab.org:29418/scilab
.   38e8d08..065bdd6  uicontrol -> uicontrol

2022-09-08 09:27