मैं अपने काम के लैपटॉप से github.com पर एक परियोजना के लिए प्रतिबद्ध करने की कोशिश कर रहा हूं , जो कंपनी गिट सर्वर के लिए पहले से ही कॉन्फ़िगर है। क्या अलग-अलग लेखक क्रेडेंशियल्स को निर्दिष्ट करने का एक तरीका है, एक अलग कॉन्फ़िगरेशन फ़ाइल या ऑथर कमांड लाइन स्विच का उपयोग करना संभव है?
मैंने प्रयोग करने की कोशिश की है
--author="My Name <MyNameEmail@email.com>"
और मुझे संदेश प्राप्त हुआ:
Committer: unknown <WorkEmail@workemail.net>
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
लेकिन यह अभी भी github.com परियोजना के लिए मेरे उपयोगकर्ता नाम को अद्यतन नहीं किया। क्या कुछ और है जो मैं कोशिश कर सकता हूं और क्या यह संभव है?
{author,committer}.{name,email}। मेरा जवाब नीचे देखें
-c user.name=Me user.email=me@example.com। एक कस्टम ग्लोबल कॉन्फ़िगरेशन का उपयोग करने के लिए, इस प्रश्न को देखें , या शेल उर्फ युक्त-cविकल्पों का उपयोग करें। लेकिन इनमें से कोई भी शायद इस स्थिति में करने के लिए सही बात नहीं है - आप प्रति-रेपो कॉन्फ़िगरेशन चाहते हैं।