× GitFichas is now open-source and undergoing some construction. Thanks for the patience. You can learn more about the changes happening here.

Textually searching

commit

messages

block-beta columns 1 block:notes space:2 f["option to show all commits"] space end block:command a("git") b("log") c("--all") d("--grep='word'") end block:notes2 space g["command to \nshow the history"] space h["option to pass the \nsearch term to be found"] end block:info j["this command also performs textual search using regex"] end %% arrows %% b --> g c --> f classDef textFont font-family:'Chilanka', font-size:1.2em, font-color:#fff, line-height:2em; d --> h %% styling %% classDef transparent fill:#fff, stroke:#fff; class a,b,c,d,e,f,g,h,i,j,k,l,notes,notes2,command,info transparent classDef commandFont font-family:'Borel', font-size:1.6em, line-height:2.2em; class a,b,c,d,e,k commandFont class f,g,h,i,j,l textFont
053 git log --all --grep='word'

Renaming

a file

block-beta columns 1 block:notes space:2 f["current file name"] space end block:command a("git") b("mv") c("source") d("target") end block:notes2 space g["command to\nmove files"] space h["new file name"] end block:info j["this command can be used to move files between folders"] end %% arrows %% b --> g c --> f classDef textFont font-family:'Chilanka', font-size:1.2em, font-color:#fff, line-height:2em; d --> h %% styling %% classDef transparent fill:#fff, stroke:#fff; class a,b,c,d,e,f,g,h,i,j,k,l,notes,notes2,command,info transparent classDef commandFont font-family:'Borel', font-size:1.6em, line-height:2.2em; class a,b,c,d,e,k commandFont class f,g,h,i,j,l textFont
052 git mv source target

Making an empty

commit

block-beta columns 1 block:notes space:2 f["option to allow the\ncreation of an empty commit"] end block:command a("git") b("commit") c("--allow-empty") end block:notes2 space g["command to\nmanage commits"] space end block:info j["this command will open a text editor to write the commit message"] end %% arrows %% b --> g c --> f classDef textFont font-family:'Chilanka', font-size:1.2em, font-color:#fff, line-height:2em; %% styling %% classDef transparent fill:#fff, stroke:#fff; class a,b,c,d,e,f,g,h,i,j,k,l,notes,notes2,command,info transparent classDef commandFont font-family:'Borel', font-size:1.6em, line-height:2.2em; class a,b,c,d,e,k commandFont class f,g,h,i,j,l textFont
051 git commit --allow-empty

Pulling

changes

block-beta columns 1 block:notes space:2 f["repository from where\n to download changes"] space end block:command a("git") b("pull") c("remote") d("branch") end block:notes2 space g["command to \ndowload changes"] space h["branch to download\n changes from"] end block:info j["usually both the remote and the branch can be omitted"] end %% arrows %% b --> g c --> f classDef textFont font-family:'Chilanka', font-size:1.2em, font-color:#fff, line-height:2em; d --> h %% styling %% classDef transparent fill:#fff, stroke:#fff; class a,b,c,d,e,f,g,h,i,j,k,l,notes,notes2,command,info transparent classDef commandFont font-family:'Borel', font-size:1.6em, line-height:2.2em; class a,b,c,d,e,k commandFont class f,g,h,i,j,l textFont
050 git pull remote branch
#049 git merge source target
#048 git branch -M name
#047 git clone -b name
#046 git stash apply stash@{2}
#045 git stash drop stash@{2}
#044 git stash pop
#043 git stash list
#042 git stash -m “changes”
#041 git stash push
#040 What is stash?
#039 git commit -C ORIG_HEAD
#038 git reset HEAD^ --soft
#037 git reset HEAD^
#036 git reset HEAD~3
#035 git switch -c name
#034 git switch name
#033 git clone url name
#032 git restore name
#031 git commit --amend

What is a

conflict

block-beta columns 1 block:notes a["it happens when two or more changes are made to the\n same chunk of a file and git doesn't know\nhow to apply the most recent change"] end block:notes2 b["conflicts are indicated by the markers >>> === <<<"] end %% styling %% classDef transparent fill:#fff, stroke:#fff; class a,b,c,notes,notes2,notes3,info transparent classDef textFont font-family:'Chilanka', font-size:1.2em, font-color:#fff, line-height:1.4em; class a,b,c,notes,notes2,notes3,info textFont
030
#029 git restore --staged name

Using

rebase

to fix branch source

block-beta columns 1 block:notes space:2 f["Flag to indicate \nthe new source"] space i["Incorrect branch source"] space end block:command a("git") b("rebase") c("--onto") d("source") e("previous") k("branch") end block:notes2 space g["Command to reapply commits"] space h["Branch or commit \nthat should be the source"] space l["Branch that \nneeds correction"] end %% arrows %% b --> g c --> f classDef textFont font-family:'Chilanka', font-size:1.2em, font-color:#fff, line-height:2em; d --> h e --> i k --> l classDef textFont font-family:'Chilanka', font-size:1.2em, font-color:#fff, line-height:2.2em; %% styling %% classDef transparent fill:#fff, stroke:#fff; class a,b,c,d,e,f,g,h,i,j,k,l,notes,notes2,command,info transparent classDef commandFont font-family:'Borel', font-size:1.6em, line-height:2.2em; class a,b,c,d,e,k commandFont class f,g,h,i,j,l textFont
028 git rebase --onto source previous branch
#027 git rebase source target
#026 git branch -D name
#025 git branch -d name
#024 git push remote branch
#023 git push --set-upstream remote branch
#022 git remote rename current name
#021 git remote add name url
#020 git remote -v
#019 What is a remote?
#018 git clone url
#017 What is a clone?
#016 What is a fork?
#015 What is a diff?
#014 git checkout -b name
#013 What is HEAD?
#012 git diff
#011 git checkout name

what is a

pull request

block-beta columns 1 block:notes a["It is the process of submitting changes for\nreview on GitHub"] end block:notes2 b["On GitLab, this process is called merge\nrequest"] end %% styling %% classDef transparent fill:#fff, stroke:#fff; class a,b,c,notes,notes2,notes3,info transparent classDef textFont font-family:'Chilanka', font-size:1.2em, font-color:#fff, line-height:1.4em; class a,b,c,notes,notes2,notes3,info textFont
010
#009 git branch name
#008 git add -p
#007 git log
#006 git status

what is the

staging

area

block-beta columns 1 block:notes a["it's the commit setup area"] end block:notes2 b["where we see the collection of altered or created files \nthat will be part of the next commit"] end %% styling %% classDef transparent fill:#fff, stroke:#fff; class a,b,c,notes,notes2,notes3,info transparent classDef textFont font-family:'Chilanka', font-size:1.2em, font-color:#fff, line-height:1.4em; class a,b,c,notes,notes2,notes3,info textFont
005
#004 git show 09c6d68
#003 git commit -m “changes”
#002 git add file.txt
#001 git init