RUVIDEO
Поделитесь видео 🙏

Git & GitHub Tutorial | Interview Questions | LEC - O3 @dev_safia

#gittutorial #git #github #githubtutorial #beginners
Lec-01 This is first lecture on Git in this series.in this lecture,i describe all the concept related to git,why we need git,what is distributed management system,what is source code management,how DCVS is different from CVCS.This tutorial will let you know all about Version Control System & Version Control Tools like Git advantages of git ,#command ,What is Git Three Stages , #interview #question #interviewquestions
git init vs. git clone
A quick note: git init and git clone can be easily confused. At a high level, they can both be used to "initialize a new git repository." However, git clone is dependent on git init. git clone is used to create a copy of an existing repository. Internally, git clone first calls git init to create a new repository. It then copies the data from the existing repository.

How to push our local files and folders in GitHub
create a new repo in GitHub and local

mkdir DevOps

cd DevOps

git init

create some files in your local repo

touch safia{1..3}.txt

ls

safia1.txt safia2.txt safia3.txt

git add. (all files will add )

git commit -m "add this files"

show remote origin URL

git remote -v

Git remote command acts like a border, and If you need to connect with the outside world, you have to use the Git remote command. This command will connect your local repository to the remote.

git remote add origin https://github.com/Safiakhatoon767/safia-blog-1.git

git remote -v

origin github.com/Safiakhatoon767/safia-blog-1.git (fetch)

origin github.com/Safiakhatoon767/safia-blog-1.git (push)

In simple words, the git push command is used to send your local changes to the remote repo.
git push origin master

so in my case, I find the error such that remote: Support for password authentication was removed on August 13, 2021. remote: Please see docs.github.com/en/get-started/getting-star.. for information on currently recommended modes of authentication. fatal: Authentication failed for 'github.com/Safiakhatoon767/Devops.git' maybe you didn't find an error

How to solve this error:

step 1: go to GitHub settings

step 2: go to the developer setting

step 3: personal access token

step 4: Tokens classic

step:5 generate a new token

step 6: generate a new token classic

step 7: copy your access token now.

step 8: go to your local terminal and paste a URL like this

git remote set-url origin https://[email protected]/Safiakhatoon767/DevOps.git

git push origin master

What is a git repository?
A Git repository is a place where developers store and manage their code files for a software project, allowing them to collaborate, track changes, and work together on the same codebase.

How Git is different from Github?
GitHub vs. Git

Difference between git and GitHub :

Git :

Git is based on CLI (Command line interface)

Git installed locally

Open Source Licence.

GitHub :

GitHub is based on GUI (Graphical user interface)
GitHub hosted in a web
Inc
What does git clone do?
It is used to point to an existing repository and make a clone or copy of that repository in a new directory, at another location.
What is a conflict and how will you resolve it?
A conflict in Git occurs when two or more people make changes to the same part of a file or project, resulting in a merge conflict. To resolve it, you need to review the conflicting changes, decide which changes to keep, and manually edit the file to combine the changes. Once the conflict is resolved, you can commit the changes to the repository.
What is the difference between git pull and git fetch?
In easy and short explanation, git fetch downloads the changes from the remote repository to your local repository, but does not merge them with your current branch. Whereas, git pull downloads the changes from the remote repository and automatically merges them with your current branch.
completion.png
Git pull = git fetch + git merge
How will you create a git repository?
To create a Git repository, you can navigate to the directory where you want to store your project, and then use the command git init. This will initialize an empty Git repository in the current directory.
Tell me something about git stash.
git stash is a command in Git that allows you to temporarily save changes that are not yet ready to be committed. It stores the changes in a "stash" and reverts your working directory to the last commit, allowing you to work on a different branch or fix a bug before returning to the original changes.
image.png
? SOCIAL NETWORKS - Connect With DevSafia!
-------------------------------
Github ??
https://github.com/Safiakhatoon767
Linkdln ?
https://www.linkedin.com/in/safia-khatoon-devops/
Gmail?
[email protected]
NOTES : https://safiakhatoon.hashnode.dev/git-and-github-tutorial-basics-to-advanced-syllabus-breakdown
-------------------------------
---------------------------------------------------------

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Git & GitHub Tutorial | Interview Questions | LEC - O3 @dev_safia», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.