[git-users] Re: It is possible to build a release with git?

2016-02-23 Thread Pranit Bauva
Many projects use the system of tags for their release. You can read more 
about tags on http://git-scm.com/book/en/v2/Git-Basics-Tagging . In short, 
tags are references to commits that signify a release. So whenever you want 
to checkout a release, you can checkout that tag and then "git archive" it.

A more technical description for both of the commands can be found in :-
https://www.kernel.org/pub/software/scm/git/docs/git-tag.html
https://www.kernel.org/pub/software/scm/git/docs/git-archive.html

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] It is possible to build a release with git?

2016-02-23 Thread Philip Oakley
Lots of options, depending on your hidden contraints.

You could create a shallow clone (depth=1; branch=master) and deliver that (but 
...)

You could 'git archive' (see man page).

You could web search with your favourite engine for 'version release with git' 
etc.

However, the common advice is that git isn't actually a release tool.

It all depends
  - Original Message - 
  From: kwp.kl...@gmail.com 
  To: Git for human beings 
  Sent: Tuesday, February 23, 2016 7:34 PM
  Subject: [git-users] It is possible to build a release with git?


  Hello,


  I want to make a release from a project with git . I want to deliver the 
latest state as a release and not the whole development to the customer.

  -- 
  You received this message because you are subscribed to the Google Groups 
"Git for human beings" group.
  To unsubscribe from this group and stop receiving emails from it, send an 
email to git-users+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] Git says there are local changes, but there are no changes. (Windows)

2016-02-23 Thread Philip Oakley
What Operating System are you on (version etc) and which Git version.

If you are on Windows (and perhaps Mac), do check the file name casing 
(upper/lower) as both ignore case but preserve it.

Other options are that you have a line ending setting that does not 'round 
trip' properly, so maybe LF in the repo, but CRLF checked out, yet wants to 
check-in (add) as unchanged...

Is it all files, all text files, or are they binary, etc. 

Is it just a few files.

If other repos have no problem, compare their local config files with that of 
the problem repos..


- Original Message - 
  From: Ben Page 
  To: Git for human beings 
  Sent: Tuesday, February 23, 2016 6:34 PM
  Subject: [git-users] Git says there are local changes, but there are no 
changes. (Windows)


  I have a couple repos that routinely believe there are local changes, when 
there are none. The only solution seems to be to delete these files and 
reacquire them from git.


  For example:

  >git status
  On branch master
  Your branch is behind 'origin/master' by 2 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
  Changes not staged for commit:
(use "git add ..." to update what will be committed)
(use "git checkout -- ..." to discard changes in working directory)
  modified: XXX
  modified: YYY
  no changes added to commit (use "git add" and/or "git commit -a")


  >git --version
  git version 2.7.2.windows.1


  Reset doesn't work.

  >git reset --hard
  HEAD is now at cebdb13 Commit Message

  >git pull 

  Updating cebdb13..076de5e
  error: Your local changes to the following files would be overwritten by 
merge:
  XXX
  YYY
  Please, commit your changes or stash them before you can merge.
  Aborting


  Checkout doesn't work


  >git checkout XXX
  >git checkout YYY

  >git pull
  Updating cebdb13..076de5e
  error: Your local changes to the following files would be overwritten by 
merge:
  XXX
  Please, commit your changes or stash them before you can merge.
  Aborting


  The only solution that I've found .

  >rm .git\index
  >rm XXX

  >rm YYY

  >git reset --hard

  >git pull

  Updating cebdb13..076de5e
  Fast-forward
  ...


  Can anyone help me understand why this is happening and how to avoid it?

  -- 
  You received this message because you are subscribed to the Google Groups 
"Git for human beings" group.
  To unsubscribe from this group and stop receiving emails from it, send an 
email to git-users+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] It is possible to build a release with git?

2016-02-23 Thread kwp . klein
Hello,

I want to make a release from a project with git . I want to deliver the 
latest state as a release and not the whole development to the customer.

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[git-users] Git says there are local changes, but there are no changes. (Windows)

2016-02-23 Thread Ben Page
I have a couple repos that routinely believe there are local changes, when 
there are none. The only solution seems to be to delete these files 
and reacquire them from git.

For example:

>git status
On branch master
Your branch is behind 'origin/master' by 2 commits, and can be 
fast-forwarded.
  (use "git pull" to update your local branch)
Changes not staged for commit:
  (use "git add ..." to update what will be committed)
  (use "git checkout -- ..." to discard changes in working directory)
modified: XXX
modified: YYY
no changes added to commit (use "git add" and/or "git commit -a")

>git --version
git version 2.7.2.windows.1

Reset doesn't work.

>git reset --hard
HEAD is now at cebdb13 Commit Message

>git pull 
Updating cebdb13..076de5e
error: Your local changes to the following files would be overwritten by 
merge:
XXX
YYY
Please, commit your changes or stash them before you can merge.
Aborting

Checkout doesn't work

>git checkout XXX
>git checkout YYY

>git pull
Updating cebdb13..076de5e
error: Your local changes to the following files would be overwritten by 
merge:
XXX
Please, commit your changes or stash them before you can merge.
Aborting

The only solution that I've found .
>rm .git\index
>rm XXX
>rm YYY
>git reset --hard
>git pull
Updating cebdb13..076de5e
Fast-forward
...

Can anyone help me understand why this is happening and how to avoid it?

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.