You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It adds a section to your `.git/config` file, specifying the name of the remote (`origin`), the URL of the remote repository, and the refspec for fetching:
If you have a complex workflow process that has a QA team pushing branches, developers pushing branches, and integration teams pushing and collaborating on remote branches, you can namespace them easily this way.
@@ -112,9 +112,9 @@ If they want Git to do that automatically each time they run `git push origin`,
112
112
[source,ini]
113
113
----
114
114
[remote "origin"]
115
-
url = git@github.com:schacon/simplegit-progit.git
116
-
fetch = +refs/heads/*:refs/remotes/origin/*
117
-
push = refs/heads/master:refs/heads/qa/master
115
+
url = https://github.com/schacon/simplegit-progit
116
+
fetch = +refs/heads/*:refs/remotes/origin/*
117
+
push = refs/heads/master:refs/heads/qa/master
118
118
----
119
119
120
120
Again, this will cause a `git push origin` to push the local `master` branch to the remote `qa/master` branch by default.
0 commit comments