मैं git करने के लिए नया हूँ पर 'आपका शाखा से आगे है', और मैं निम्नलिखित व्यवहार का मतलब नहीं कर सकते हैं:मूल/मास्टर '1 से प्रतिबद्ध' स्पष्ट धक्का
मैं एक bitbucket रेपो है मैं स्थानीय रूप से क्लोन करता हूं, फिर मैं स्थानीय रूप से संशोधित करता हूं और प्रतिबद्ध करता हूं, फिर मैं रिमोट रेपो को दबाता हूं। अगर मैं एक अंतर्निहित पुश करता हूं, या 'पुश मूल' करता हूं, तो कोई समस्या नहीं है। अगर मैं स्पष्ट रिमोट यूआरएल का उपयोग करके धक्का देता हूं, तो मुझे स्टेटस संदेश मिलता है 'आपकी शाखा' मूल/मास्टर 'से पहले 1 प्रतिबद्ध है।
ऐसा लगता है कि Git मूल रूप में एक ही होने के रूप में स्पष्ट पता नहीं पहचानता है, तो वास्तव में क्या चल रहा है। अगर मैं एक और निहित धक्का करता हूं, तो यह कुछ भी नहीं करता है, लेकिन यह कहा गया संदेश साफ़ करता है।
[email protected]:/more/coding/git-tests/ask1$ git --version
git version 1.7.2.5
[email protected]:/more/coding/git-tests$ git clone https://[email protected]/shishani/dirasi.git ask1
Cloning into ask1...
Password:
remote: Counting objects: 24054, done.
remote: Compressing objects: 100% (6300/6300), done.
remote: Total 24054 (delta 17124), reused 24024 (delta 17106)
Receiving objects: 100% (24054/24054), 11.83 MiB | 251 KiB/s, done.
Resolving deltas: 100% (17124/17124), done.
[email protected]:/more/coding/git-tests$ cd ask1
[email protected]:/more/coding/git-tests/ask1$ jed setup.py
[email protected]:/more/coding/git-tests/ask1$ git commit -a
[master a053f28] modified: setup.py
1 files changed, 1 insertions(+), 0 deletions(-)
[email protected]:/more/coding/git-tests/ask1$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
[email protected]:/more/coding/git-tests/ask1$ git remote show origin
Password:
* remote origin
Fetch URL: https://[email protected]/shishani/dirasi.git
Push URL: https://[email protected]/shishani/dirasi.git
HEAD branch: master
Remote branch:
master tracked
Local branch configured for 'git pull':
master merges with remote master
Local ref configured for 'git push':
master pushes to master (fast-forwardable)
[email protected]:/more/coding/git-tests/ask1$ git push
Password:
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 314 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: bb/acl: shishani is allowed. accepted payload.
To https://[email protected]/shishani/dirasi.git
5e9ffd1..a053f28 master -> master
[email protected]:/more/coding/git-tests/ask1$ git status
# On branch master
nothing to commit (working directory clean)
[email protected]:/more/coding/git-tests/ask1$ jed setup.py
[email protected]:/more/coding/git-tests/ask1$ git commit -a
[master 6d0e236] modified: setup.py
1 files changed, 1 insertions(+), 0 deletions(-)
[email protected]:/more/coding/git-tests/ask1$ git push https://[email protected]/shishani/dirasi.git master
Password:
Counting objects: 5, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 298 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: bb/acl: shishani is allowed. accepted payload.
To https://[email protected]/shishani/dirasi.git
a053f28..6d0e236 master -> master
[email protected]:/more/coding/git-tests/ask1$ git status
# On branch master
**# Your branch is ahead of 'origin/master' by 1 commit.** <-- this does not reflect current state
#
nothing to commit (working directory clean)
[email protected]:/more/coding/git-tests/ask1$ git push
Password:
Everything up-to-date
[email protected]:/more/coding/git-tests/ask1$ git status
# On branch master
nothing to commit (working directory clean)
यह प्रश्न गलत प्रश्न के डुप्लिकेट के रूप में गलत तरीके से बंद कर दिया गया था। जैसे ही मैं गिट के लिए डुप्ली हथौड़ा प्राप्त कर रहा हूं, मैं इसे फिर से खोलना शुरू कर दूंगा और इस तरह के प्रश्नों को सही तरीके से बंद कर दूंगा [अन्य आपकी शाखा 'मूल/मास्टर' प्रश्नों से आगे है] (https://www.google .com/खोज? q = आपका + शाखा + + आगे +% 27origin% 2Fmaster% 27 की + है)। –