[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 your project GIT repository & configure it

[$SHELL] git clone ssh://john.smith@git.forge.scilab.org:29418/scidb
. Initialized empty Git repository in /home/smith/scidb/.git/
. remote: Counting objects: 3, done
. remote: Compressing objects: 100% (3/3)
. Receiving objects: 100% (3/3), done.

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

You first commit

[$SHELL] nano README
[$SHELL] touch 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:   README
. #
. # Untracked files:
. #   (use "git add <file>..." to include in what will be committed)
. #
. #     newfile.txt
. no changes added to commit (use "git add" and/or "git commit -a")

[$SHELL] git add  newfile.txt

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

[$SHELL] git commit -m "My first commit"
. [master 46d29c0] My first commit
.  1 files changed, 1 insertions(+), 0 deletions(-)
.  create mode 100644 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.forge.scilab.org:29418/scilab
.   38e8d08..065bdd6  master -> master

2022-09-08 09:27