Back to the main page

Edit a file and commit to remote GitLab repo

Edit the file

See the difference you made with the command : git diff

# git diff sync-oss-internal 
diff --git a/sync-oss-internal b/sync-oss-internal
index b84df40..9ae3788 100755
--- a/sync-oss-internal
+++ b/sync-oss-internal
@@ -1,4 +1,11 @@
 #!/bin/sh
+#
+# project is sysadmins / ca-rsync-admin
+# https://some-doc1
+# https://some-doc2
+#
+
 LC_ALL=C
 DISPLAY=
 TERM=vt100

See the status with : git status

#  git status 
# On branch master
# Changed but not updated:
#   (use "git add ..." to update what will be committed)
#   (use "git checkout -- ..." to discard changes in working directory)
#
#       modified:   sync-oss-internal
#
no changes added to commit (use "git add" and/or "git commit -a")

Finally push to remote, the syntax is : git push <REMOTENAME> <BRANCHNAME>

#  git push 
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 520 bytes, done.
Total 3 (delta 1), reused 0 (delta 0)
To git@<gitlab-host>company.ca:sysadmins/rsync-admin.git
   f80e400..a7b32e3  master -> master

# git push
Everything up-to-date

See results via web UI









Back to the main page