简体   繁体   中英

git branches from browser

I've just created a git branch using

git checkout -b develop

But when I browse the project using the browser I don't see it in

../my-app/branches

I'm not too sure what you call "the browser".

switch(browser) {

case your local file browser:

Git is not SVN. You won't see a sub-folder for each branch appear explicitly in your source tree. Nothing there will be visible to a non-Git-aware browser. These details will be hidden in .git/refs/heads , and you won't need to dig that up for normal use.

On the command-line, just type git branch . If you see develop in the list that shows up, the branch exists in the local repository. If a star is shown on the same line, then it's currently checked out.

case GitK:

If you're talking about the GiTK browser (also labelled as Git GUI), there's a "Branch" menu. Click Branch / Checkout, and see what's there.

case remote browser:

(such as Gogs, Github, etc.)

On a web app that lets you navigate a remote, typically branches will show in a drop-down menu that, by defaults, is set to master . But for your new branch to be visible there, you'll need to have pushed it : git push -u origin develop .

}

I can't recommend enough reading the Git Book. Here's the chapter that explains branches .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM