View source for Git

{{toc numerate=1}}
Goal is that all administrators can perform the necessary actions properly and according the project policies.
  * GUI + CLI

  1. ****  <-- main
  2. <-- mirror
  3. <-- dev

  * ##Revision## --> Mercurial
  * ##Commit## --> Git

UPDATE doc_page SET body = REPLACE(body, 'source:default/', 'source:master/') 


* text eol=lf

*.png binary
*.gif binary
*.ico binary

.gitattributes export-ignore
.gitignore export-ignore
composer.json export-ignore
composer.lock export-ignore
# WackoWiki



# Eclipse IDE

# PHPStorm IDE

If you are trying to ignore changes to a file that's already tracked in the repository (e.g. ##config.php## file that you would need to change for your local environment but you would never want to check in these changes) than what you want to do is:
%% git update-index --skip-worktree <file>%%

===Differences to Mercurial===

====Purge the last commit====
git reset --hard HEAD^
git push origin -f
git reset --hard 71c27777543ccfcb0376dcdd8f6777df055ef479
git push --force
a specific repo:
%% git push https://git.... --force %%
====Clone particular version of remote repository====
##git clone -b branch_or_tag_name repo_address_or_path##
git clone -b 6.1.4

git clone -b 6.1.4

====Reset local repository branch to be just like remote repository HEAD====
git fetch origin
git reset --hard origin/master


  * almost all libs we use are on Github
  * API
  * lock-in
  * GitHub GUI no longer supports languages other than English.

(( Creating a personal access token))
Personal access tokens function like ordinary OAuth access tokens. They can be used instead of a password for Git over HTTPS, or can be used to authenticate to the API over Basic Authentication.

===Import from Mercurial===

  1. (( Requiring a linear commit history))
  2. (( Setting your commit email address))
    * %%commit eae3fd3461492b2396b66f9d7d7441f611775005
Author: vendeeglobe <> 2019-08-24 17:28:56
Committer: vendeeglobe <> 2019-08-24 17:28:56%% 


  1. merge pull requests
  2. strip an unwanted commit

{{include page="!/GitCommands"}}

===GUI Clients===
  * ((!/Client Clients))


((/Org/Tools/Repository/Git/Client/Eclipse Working with Eclipse))

===Backup Solution===
Mitigate lock-in 

  1. (( Comparison of source-code-hosting facilities))
  1. (( Comparison of version-control software))