git commands
git commands
tracking part(snap shot repository hidden area)= commit code snapshot(message u and
other developer are aware) and branch (where commits are stored) and stored in the
main/master
feature
git init
git add test.text
git commit -m "test.txt added"
git config --global user.name
git commit -m "added test.txt file"
master is the default working branch is the one holding running code if want to add
new features u create new branch and add the new changes then to the master
commit 934ccbf538de41cf3cc5800e29c2af51dc2f2f92
Author: kibirige henry <kibirighenry@gmail.com>
Date: Tue Jun 24 21:14:52 2025 +0300
commit 0a94fe9325aaccec8faf0d05b8e825c41ab0c0d6
Author: kibirige henry <kibirighenry@gmail.com>
Date: Tue Jun 24 20:55:57 2025 +0300
PS C:\Users\kibir\Desktop\git-basics new>
to dele a file first go in the that folder where the file is located
incase in cache
git credential-cache exit
===================== undoing delete of files and bring current files working area
===================
no changes added to commit (use "git add" and/or "git commit -a")
PS C:\Users\kibir\Desktop\git-basics new\new-feature\deleting-data> git checkout --
.
PS C:\Users\kibir\Desktop\git-basics new\new-feature\deleting-data>
==== OR =====
no changes added to commit (use "git add" and/or "git commit -a")
PS C:\Users\kibir\Desktop\git-basics new\new-feature\deleting-data> git checkout --
file2.txt
PS C:\Users\kibir\Desktop\git-basics new\new-feature\deleting-data>