git

A short synonym for the HEAD of the current branch on origin?

You often need to look at the commit hash for your branch on the remote machine. For example, if I am on a branch feature/123 ... nknown revision or path not in the working tree. Use '--' to separate paths from revisions, like this: 'git [...] -- [...]'

Creating a git server for Windows

Good time of day. The problem is this. It is necessary to make an analog of gitlab, but with a host on my PC. So that several ... tually, how and by what means can I do what I described above? Thank you in advance for your answers and have a nice evening!

I can't connect to gitlab via SSH, why?

There is a gitlab deployed on its server, it works successfully, projects are uploaded, everything is created, the web interf ... mitriy/.ssh/gitlab debug1: Authentications that can continue: publickey,password debug1: Next authentication method: password

How to write commits correctly?

There is a project for quite a lot of files (. cpp and .h project in C++). In general, I decided to use git. I filled in the ... re project on git, do I need to commit each file? That is, to sit and describe each file? And how to write commits correctly?

How do I switch between branches in git when there are unsaved changes in the current branch?

I have a project. Located in the project folder. Initializing Git, creating a new branch: git init git add . git commit -m ' ... t the project folder contains not the files that I am currently working on feature, but those that were in the master branch?

Git Change origin

I once uploaded my project to gitlab. Then, I don't remember how, I changed origin to heroku, because I had to upload the pro ... s obvious here - I just want to do everything like people do, and not the blunder that I have now-it hurts to watch myself...

Can't execute git push

I can't execute git push. There are two repositories repo1 and repo2. repo1 is remote, repo2 is local. Setting up a connectio ... formation, I apologize, I am studying with git, I work for the 3rd day, I tried to describe my actions as much as possible.

How to work with two branches at the same time(github)?

Example:I made a fork of project F. I received task A and made three commits and pusha A1, A2 and A3. Then I got the task B-y ... A1->A2->A3->A4 2)F->B1->B2->B3. How to do this, if possible in detail: the command (what it does). Thanks.

How to run a GIT project in Python+Django?

There is a mini project in python (2.7) + django (1.11). For convenience, virtualenv is installed. The whole project has a st ... hanged (along the path Lib\site-packages) (do not put the entire folder in git). It is forbidden to use Docker on the server.

What are the differences between Git and SVN?

The question is, actually, the choice. How is Git better or worse than SVN? Why do I hear more often from developers about Gi ... positories to almost the same level. Maybe it's just that something is poorly advertised, and there is no difference at all?

How do I set up a local git server? (possible via ssh access)

Bottom line: there is a machine with multiple users. You need to create a git repository for these users, which would be on t ... organize access to the local folder via ssh. I didn't find anything in Google about this the question. *rwc-read-write-modify

Github vs bitbucket

Here's what I need: I have 1 php project I want to have several closed branches and also have one open branch for everyone . ... ay anything and that there are no restrictions on the size of the source code Which is most suitable for github or bitbucket?

Git merge request How to use code from a still-unapproved merge request

Let's say there is GitLab and I need to do two tasks and create a separate merge request for each one. For the first task, I ... approved. What should I do? Maybe to perform the second task it was necessary to create a new branch from the previous one?

The simplest instructions for working with git

I have never worked with code control systems. Now I have connected to an existing repository on bitbucket to work with the s ... restored to my changed state, but it was restored to the state before I changed it). In the branches list, I selected master.

How do I upload a git project to another repository?

There is a project with git, it is connected to the repository and all commits are pushed there, there is a new repository to ... e are two files in the new repository - .gitignore and README.md. I'm not very strong in git, help me how to do it correctly.

GitHub configuring ssh access in Debian 9

I want to clone the repository to my remote server, git is installed, the www user is created and a public key id_rsa. pub is ... remote repository. Please make sure you have the correct access rights I do not understand what to do next, please tell me.

Configuring Git for OpenServer and Composer

Good day to all. I've been suffering for a week now, I can't install Composer via Git. Who successfully managed to cope with ... tallers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--opt imize-autoloader] Tell me what could be the problem?

What is the difference between git rebase and git merge?

Please tell me what is the significant difference between merge and rebase. I read the answer at this link and the only thing ... e git rebase. Also, when you mention rebase, you always mention the linearity of the history, so what happens when you merge?

Why do I need SSH when working with Git?

When I first started working with Git, I immediately generated keys on GitHub. Time has passed, and I absolutely do not under ... el the difference. On the locale, I do push. Everything is pushed on BitBucket. I do pull on my instance in DO. What's wrong?

Why combine these commands git fetch, git reset --hard origin/master?

There are many examples where the{[2] commands are used]} git fetch git reset --hard origin/master Why combine these commands ? If there are links, I will be happy to see them.