Difference between revisions of "Git notes"

From Wiki at Neela Nurseries
Jump to: navigation, search
m (^ Git Branching: - adding link to nvie.com git branching article - TMH)
m (^ Git Branching: add URL to working with mutiple git remotes.)
Line 134: Line 134:
 
*  https://linuxize.com/post/how-to-rename-local-and-remote-git-branch/
 
*  https://linuxize.com/post/how-to-rename-local-and-remote-git-branch/
 
</ul>
 
</ul>
 +
 +
 +
<!-- comment -->
 +
 +
== [[#top|^]] Git remotes ==
 +
Working with multiple git remotes , remote repositories:
 +
*  https://jigarius.com/blog/multiple-git-remote-repositories
  
 
<!-- comment -->
 
<!-- comment -->

Revision as of 20:11, 8 June 2021

-- 2017-12-04 Monday - somvaar - सोमवार--
Git Notes


^ OVERVIEW - अवलोकन

Following article / document collection of notes on version control software named git.


^ How To Use Git


Wanting to understand and use git better, here are some on-line references to git version control. Noting here git reference at orga.cat, this reference well-written with lots of commands and concise explanations of each command. This reference is first in list:


Basic git commands:

2020-05-06


Atlassian article on Git's edit/stage/commit pattern of use (Invoke `git add` to stage local file changes.):


Setting up ssh key pairs for secure authentication:


Why are my local changes getting lost? Git commit-and-push-sequence not sufficient to transfer file changes to given git repository . . .


Git references found while answering specific git task questions:

  $ git diff HEAD .


Markdown and .md file formatting at Github


Git and Working with Remote Repositories


Release tag creation and naming in Git



^ Git Command Examples

On the local work station, to see from which remote git repository a working copy comes:

   $ git remote -v



^ Git Terminology

What it means to 'rebase' in context of git . . .

  *  https://git-scm.com/docs/git-rebase



^ Git Branching

An official starting point for git branch use can be found at https://git-scm.com/docs/git-branch. Some articles on the large topic of best branching practices include:

When there are local changes that haven't been committed . . .

  *  https://stackoverflow.com/questions/20568971/git-pull-keeps-telling-me-to-stash-local-changes-before-pulling

Excerpt from above link:

It sounds like your local branch does not have all of the changes on origin.

Firstly, stash your changes

git stash

Then, pull in the changes from origin.

git fetch origin && git rebase origin/(branch name)

Next, add the stash back in to your working directory:

git stash pop

Renaming local and remote branches:


^ Git remotes

Working with multiple git remotes , remote repositories:


^ Using Git and Subversion Together

Using Git and Subversion on one and the same project looks complicated . . .


^ References