MASTER CLASS OF GIT & GITHUB- REGex SOFTWARE SERVICES
Geetha Arumugam
"Software Engineer" @ Tech Mahindra || Microsoft Certified PL300 || AZ900 || DP900 || ???? 102 || ?????????????? || ?????? ?????????????????? ?????????? || ?????? ?????? ??03 || ?????????????????? ?????? ????????
Name: Geetha Arumugam
College : N/A
Explanation of your task: [ which may helps your connection to understand your work ]
Very Nice and Informative things to learn from Regex Software Services. First of all thanks to Regex .we need more sessions like this.
1. What is the difference between pushing and pulling..?
The pushing sends the recent commit history from your local repository up to GitHub.
The pull grabs any changes from the GitHub repository and merges them into your local repository.
Git push uploads all local branch commits to the corresponding remote branch.
Git pull updates your current local working branch, and all of the remote tracking branches
Git push as update or publish
Without running git pull, your local repository will never be updated with changes from the remote
2. How to initialise a new git repository[ Describe all the steps ]..?
- Initializing a new Git repo
- Cloning an existing Git repo
- Committing a modified version of a file to the repo
- Configuring a Git repo for remote collaboration
- Common Git version control commands
3. What is the use of git clone and how to use it?
Cloning a local or remote repository
Cloning a bare repository
Using shallow options to partially clone repositories
Git URL syntax and supported protocol
git clone is used to create a copy of a target repository
The target repository can be local or remote
Git supports a few network protocols to connect to remote repository
There are many different configuration options available that change the content of the clone
4. How to ignore some files/folders from pushing?
We want to ignore some files / folders from pushing that we've committed in the past, We'll need to delete the file from our repository and then add a . gitignore rule for it. Using the --cached option with git rm means that the file will be deleted from our repository, but will remain in our working directory as an ignored file.
5. What do you mean by Branch?
A branch represents an independent line of development. Branches serve as an abstraction for the edit/stage/commit process. You can think of them as a way to request a brand new working directory, staging area, and project history. New commits are recorded in the history for the current branch, which results in a fork in the history of the project.
· Which branch should be used to keep deployment-ready code
branches are used to develop new features for When we need feedback or help, or think the branch is ready for merging, open a pull it is merged and pushed to master , we can and should deploy immediately to Git Flow; It is ideal when it needs to maintain single version in production
Checkout one more branch deployment from the previous branch.
Push different data into both branches.
Merge data from both branches to the main branch.
https://github.com/Geethaarumugam-DSP/Regex-Github-task/pull/1