Git and Github
Git and Github
2:Login to aws rhel9/ubuntu server --> yum install git --> cd /opt
5:Create two three code files and perform the below operations to commit the code in local
repository.
git init --> git add --> git commit --> .gitignore --> git commit -m "mesaage"
5:To Push the code from local to remote repository, follow the below steps
a:Create one token on github account, run the below command to push your code (set the remote
url and then push the code in remote repository)
git log -p
git log -3
7:Git branching
git branch for adding a seperate code in seperate field to develop a new feature
git branch
create two three files and add it in remote repository with new branch using
git diff
git statges
Working Directory --> Staging Area --> Local git repository --> Push --> Remote Github repository
2:git add --> Add the working area files into staging area
3:git commit -m "commit mesaage" --> commit the chnages from staging to local git repository.
4:git push --> push your code from local git repository to remote github repository
5:git pull --> Fetch and download the recent chnages from remote repository to local repository
6:git fetch --> valodate the recent changes between remote repository to local repository
7:git clone --> Download the entire remote github repository on working directory.
8:git branch--> If we want to add new feature in our project , we have to create new bbranch so that
we can keep the code files in that new feature branch.
9:git reset --> To undo or revert the commits or changes from local git repository to staging area or
working directory.
11:gitignore --> The code which we do not require or use anymore. Those data/files we generally
keep inside .gitignore file.
13:git rebase-->
Ticket state:
Hold -->
open -->
resolved -->
cancelled -->
Ticket --> Response (30 minutes) --> Working on ticket --> share findings/ Investigation with
customer --> (wait for the customer response ) Hold --> Customer say if no issues found then you can
close the ticket. --> change from hold to resolved