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

Github Tutorial for beginers-1

📁 Лайфстайл 👁️ 16 📅 04.12.2023

GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.

navigate to the directory where project is located on local drive.
for ex. if you have one project named myproject
then go to the location of project.

cd myproject

if you dont have github account then create github account first.
https://github.com

create one repository in which you want to contribute your project.
you can create public or private repository.


once you have created repository
you have to set username and email id for the repository
$ git config --global user.name "purval patel"
set email id
$ git config --global user.email "[email protected]"

initialize git repository
$ git init

Let us see the basic workflow of Git.

Step 1 : You modify a file from the working directory.

Step 2 : You add these files to the staging area. ( Git add)
$ git add . ( all files available into existing directory)
OR
$ git add sort.c (single file)

Step 3 : You perform commit operation that moves the files from the staging area. After push operation, it stores the changes permanently to the Git repository. (git commit , git push )
$ git commit -m "my first commit"

now add all changes into the master branch
$ git remote add origin https://github.com/purvalpatel/myproject.git

Now, finally you can push all change to github repository
$ git push -u origin master
all changes will be pushed to the master branch.

if you make any changes in project on local drive then follow this three steps which are describe above.

1. Add this changed files to staging area.
$ git add {filename}
If you want to see the changes of changed files OR which files are recently changed/added to staging area. you can use below command.
$ git status

2. commit those changes .
$ git commit -m "file created for some functionality"
3. push changes to repository.
$ git push -u origin master

[Note: the folders which are empty are not pushed to the repository.]

Git push command asking for username and password everytime during push.
$ git config credential.helper store
$ git push http://github.com/purvalpatel/myproject.git

Enter username and password now.

from now it will not ask for the password during push operation.

thank you for watching.
In next video we will see how to work with branch.

if you have any query then contact me,
email : [email protected]

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Github Tutorial for beginers-1», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

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

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

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