=== Tools > Git ===
The server is available at https://git.enroute-computer.com
----
==== Log in ====
The following steps are done at https://git.enroute-computer.com
{{ :tools:git-01.png?nolink |}}
{{ :tools:git-02.png?nolink |}}
NOTICE \\
This is NOT your email password. Use your git password that was provided to you by the system administrator.
----
==== Change your password ====
Your Settings > Password
{{ :tools:git-03.png?nolink |}}
----
==== Update your user profile/avatar ====
Your Settings > Profile
{{ :tools:git-04.png?nolink |}}
Your Settings > Avatar
{{ :tools:git-05.png?nolink |}}
----
==== Add your public ssh keys ====
Your Settings > SSH Keys > Add Key
{{ :tools:git-06.png?nolink |}}
{{ :tools:git-07.png?nolink |}}
----
==== Test access permissions ====
The following steps are executed on your local machine
Configure git environment
smithj@one:~$ git config --global user.name "James Smith"
smithj@one:~$ git config --global user.email "smithj@enroute-computer.com"
smithj@one:~$ git config --list
user.name=James Smith
user.email=smithj@enroute-computer.com
Clone sample repository
smithj@one:~$ git clone ssh://git@git.enroute-computer.com:20022/ecs/playground.git
Cloning into 'playground'...
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (3/3), done.
Add a test file
smithj@one:~$ cd playground
smithj@one:~/playground$ echo "smithj: testing git access" > smithj.txt
smithj@one:~/playground$ git add smithj.txt
Commit changes
smithj@one:~/playground$ git commit -m "Add smithj.txt file"
[master 7d11e1e] Add smithj.txt file
1 file changed, 1 insertion(+)
create mode 100644 smithj.txt
Push changes to the server
smithj@one:~/playground$ git push -v origin
Pushing to ssh://git@git.enroute-computer.com:20022/ecs/playground.git
Counting objects: 3, done.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 317 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To ssh://git.enroute-computer.com:20022/ecs/playground.git
8f4211a..7d11e1e master -> master
updating local tracking ref 'refs/remotes/origin/master'
Review your commit at https://git.enroute-computer.com
{{ :tools:git-08.png?nolink |}}
{{ :tools:git-09.png?nolink |}}
----
==== Disclaimer ====
Above screenshots were taken using Gogs 0.11.29