From 4fafa3dbe6bddda8655ad1a8521f99de9f5f9e24 Mon Sep 17 00:00:00 2001 From: Silvino Silva Date: Thu, 14 Feb 2019 04:58:25 +0000 Subject: initial host and fqd rebranding --- dev/git/index.html | 35 +++++++++++++++++------------------ dev/shell/dash.html | 2 +- 2 files changed, 18 insertions(+), 19 deletions(-) (limited to 'dev') diff --git a/dev/git/index.html b/dev/git/index.html index 4e61822..e23e2a0 100644 --- a/dev/git/index.html +++ b/dev/git/index.html @@ -295,39 +295,39 @@ $ git ls-files --deleted -z | xargs -0 git rm - -

Mark all deleted to commit;

+

Query last commit that affected current file path

-    $ git ls-files --deleted -z | xargs -0 git rm
+    $ git rev-list -n 1 HEAD -- .
+    $ git show f000 path/to/file
+    $ git diff --name-status f000 path/to/file
     
-

2.2. Logs, diff commits

- -

Create patch files to target branch/tag/ref;

+

Undo a file to specific commit

-    $ git format-patch --no-prefix software-v0.0.1
+    $ git checkout f000^ -- path/to/file
     
-

Same using diff tool;

+

Join multiple commits into single one;

-    $ diff orig file > file.patch
+    $ git log --oneline
+    $ git rebase -i oldest_commit_to_rewrite
     
-

Query last commit that affected current file path

+

2.2. Logs, diff commits

+ +

Create patch files to target branch/tag/ref;

-    $ git rev-list -n 1 HEAD -- .
-    $ git show f000 path/to/file
-    $ git diff --name-status f000 path/to/file
+    $ git format-patch --no-prefix software-v0.0.1
     
-

Undo a file to specific commit

+

Same using diff command;

-    $ git checkout f000^ -- path/to/file
+    $ diff orig file > file.patch
     

2.3. Working with remotes

@@ -335,7 +335,7 @@

Adding a new remote;

-    $ git remote add newremotename https://github.com/user/repo.git
+    $ git remote add newremotename https://machine.example.org/repo.git
     

Update all branches with remote;

@@ -365,7 +365,6 @@ $ git config --global fetch.prune true -

This will prune on fetch or you can keep it manually;

@@ -375,7 +374,7 @@
     Development Index
     

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 Team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

diff --git a/dev/shell/dash.html b/dev/shell/dash.html index eb75abd..4cfd7bf 100644 --- a/dev/shell/dash.html +++ b/dev/shell/dash.html @@ -17,7 +17,7 @@ Development Index

This is part of the Hive System Documentation. Copyright (C) 2018 - c9 Team. + Hive Team. See the file Gnu Free Documentation License for copying conditions.

-- cgit 1.4.1-2-gfad0