threads / discuss / 57515

Git - Git flow assistance

Subject: Git - Git flow assistance

## tl;dr

3 messages between Mar 7, 2022 and Mar 8, 2022.

replies: 2people: 3as markdown or json

Firas REGAYEG· Mar 7, 2022, 13:16 UTC · lore
Hello Git !
I'm Git fan, I'm using it currently in my job. Git is awesome, I really like it.

I have an issue with git flow command and need some help please My problem is: In my team we create branch names with a pattern:

developer_identity/feature_or_bug /task_number-brief-description
Now when I'm using the command it asks me to enter feature branches prefix with a suggestion "feature/", is there a way to use variables in the name of branch? 
for example, a prefix like this one:
developer_unique_id/
=> We need to make a global variable as prefix in the branch name. 
If this isn't possible, is there another way to do something similar? 
Thanks in advance.
Kind regards.
rsbecker@nexbridge.com· Mar 7, 2022, 13:47 UTC · re: Firas REGAYEG · lore

RE: Git - Git flow assistance

On March 7, 2022 8:16 AM, Firas REGAYEG wrote:
>I'm Git fan, I'm using it currently in my job. Git is awesome, I really
like it.
>
>I have an issue with git flow command and need some help please My problem
is:
Show 6 quoted lines
>In my team we create branch names with a pattern:
>
>developer_identity/feature_or_bug /task_number-brief-description
>
>Now when I'm using the command it asks me to enter feature branches prefix
>with a suggestion "feature/", is there a way to use variables in the name
of
Show 9 quoted lines
>branch?
>
>for example, a prefix like this one:
>
>developer_unique_id/
>
>=> We need to make a global variable as prefix in the branch name.
>
>If this isn't possible, is there another way to do something similar?

Is this being done in a git command directly or in some web UI (like BitBucket)? -Randall

Erik Cervin Edin· Mar 8, 2022, 16:35 UTC · re: rsbecker@nexbridge.com · lore

Re: Git - Git flow assistance

Hi Firas,
> I have an issue with git flow command and need some help please
It sounds like you are looking for advice pertaining to git-flow,

As far as I recall, this unfortunately has nothing to do with the git project and this may not be the ideal place to ask. You may find more helpful advice by asking on Stackoverflow https://stackoverflow.com/questions/tagged/git-flow

> Now when I'm using the command it asks me to enter feature branches prefix with a suggestion "feature/", is there a way to use variables in the name of the branch?

Haven't used git-flow but I think the point of the prefix is to be "fixed". I understand your question to be making this vary depending on user. My guess is this won't work with git-flow.

Taking a step back, this sounds like an XY problem. Can you share more about how you'd like to use git and branches?

/Erik

← back to recent threads