Professional Documents
Culture Documents
Day 5
Day 5
------------------------------------------------------
mydata/
- login.php - mahinder (Timestamp)
- login.php - bijay (Timestamp)
- login.php - manoj (Timestamp)
- login.php - dhananjay (Timestamp)
----------------------------------------------------
yum install git -y
git --version
cd /opt/
mkdir myrepo
cd /opt/myrepo
mkdir project1
cd project1
pwd
Output ---> /opt/myrepo/project1
git init
git status
git status
git commit -m "I have added few files for new project of CX ...."
git status
git status
git commit -m "My first passowrd file " # Commit area of local repo
git status
output :
---------------------
On branch master
nothing to commit, working tree clean
----------------------
rm -f password-info.txt
git status
----------------------------------------------------------
git branch
OR
git branch
git status
---------------------------------------------
How to see logs / commit with id ( To help or track files info in branches) :
git log
-----------------------------------------------
Download and install Git scm tool for windows :
https://git-scm.com/downloads
------------------------------------------------
cd /opt/
mkdir myrepo
cd myrepo
ls -ltr
cd devops132024
ls -ltr
git remote -v
git pull
git fetch
---------------------------------------------
git push
----------------------------------------------