Hi Yegappan!

On Sa, 28 Mai 2016, Yegappan Lakshmanan wrote:

> Hi all,
> 
> I was looking for a Git cheat sheet for a Vim developer last week.
> I couldn't find one. I have put together the following list of commands
> (just in case someone is looking for it in the future).
> 
> Fork the Vim repository
>     1. Fork the Vim repository from the github WebUI
>     2. Clone the Vim repository:
>              $ cd <some-directory>
>              $ git clone https://github.com/<your-name>/vim/vim.git
>              $ cd vim
>     3. Configure the upstream branch:
>              $ git remote add --track master upstream
> git://github.com/vim/vim.git
>              $ git push origin master
> 
> Synchronizing a fork with the upstream
>     $ git checkout master
>     $ git fetch upstream
>     $ git rebase upstream/master
>     $ git push origin master
> 
> Creating a branch
>     1. Clone the Vim repository:
>             $ cd <some-directory>
>             $ git clone https://github.com/<your-name>/vim/vim.git
>     2. Create a child branch for the feature/bug fix:
>             $ git checkout -b <child-branch-name>
>     3. Push the new child branch to remote master:
>             $ git push origin <child-branch-name>
> 
> Committing changes to a child branch
>     1. Commit the changes:
>              $ git commit -m "Commit comment"
>     2. Push the changes to the child branch:
>              $ git push origin <child-branch-name>
> 
> Creating a pull request
>     Go to github.com and create a pull request for the child branch to submit
>     the changes for merging into the main Vim repository
> 
> Synchronizing a branch with the master
>     $ git checkout master
>     $ git fetch upstream
>     $ git rebase upstream/master
>     $ git checkout <child-branch-name>
>     $ git rebase master
>     $ git push --force
> 
> Cloning a child branch
>     $ cd <some-directory>
>     $ git clone https://github.com/<your-name>/vim/vim.git
>     $ git checkout <child-branch-name>
> 
> Pulling in latest changes from master
>     $ git stash
>     $ git pull
>     $ git stash pop
> 
> Misc Commands
>     $ git status
>     $ git diff origin/master
>     $ git log -v
>     $ git branch

Thanks for that. I think we could put this at:
http://www.vim.org/git.php

CC'ing Bram.

Best,
Christian
-- 
Wie man sein Kind nicht nennen sollte: 
  Lee Besknochen 

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui