Git - Clone, add, pull, commit, push

preview_player
Показать описание
Clone
======

list file status
=================
git diff --name-status

To pull latest code from master repo
====================================
git pull

To add modified and new files
==============================
git add .

To commit changes to local repo
================================
git commit -m "my comment"

To push local commit to remote repo
===================================
git push
Рекомендации по теме
Комментарии
Автор

thanks for the video! easy, straight to the point, just the basics. Exactly what I was looking for 🙂 !

hugomejia
Автор

How does security work with this? Was the URL something really specific or did you need some sort of trust before this point? Great info, I'm IT and I'm trying to learn this to help a user and create a local instance of Gitlab.

StevenPenny
Автор

Is there any difference at all between ssh and http cloning? Another question is - that I am seeing strange behavior. I'll clone a repo from a "test-branch." Then, I switch the default local branch from main to "test-branch." Then I do a "pull" like "git pull origin test-branch" and I immediately get conflicts. I don't understand how I'm getting conflicts if I am pulling from the repo and branch that I had just cloned?

edwarddelgado
Автор

I want to create a project in my laptop and than i want to push in Gitlab so can you provide a video for this.

Sudhanshusable
Автор

Sir, here you had opened a java file in notepad, suppose i need to modify a markdown file for documentation and see the changes, i mean i want to see same way as i see in server Git. With what application I can open and edit the file in local desktop. Please help

PrasanthK-jhlt
Автор

In my Gitlab create a project option is not working ❓

Sudhanshusable