问题描述
每当我尝试使用以下命令推送请求请求时 将要创建的内容始终以master分支为目标
CREATE OR REPLACE TYPE products_type AS OBJECT
(
products VARCHAR2 (50),price VARCHAR2 (50)
);
CREATE OR REPLACE TYPE results_type AS TABLE OF products_type;
create or replace get_sum ( l_products in varchar2(50)
RETURN results_type
IS
l_result results_type;
begin
SELECT distinct products,count(price)
BULK COLLECT INTO l_result
FROM products;
RETURN l_result;
END;
/
DECLARE
l_result varchar2(50) := '0';
BEGIN
l_result := get_sum ('apple')
DBMS_OUTPUT.PUT_LINE('Price total ' || l_result);
END;
我已经尝试过将上游设置为
git push origin my_sample_branch
但是我仍然要推送到master分支。怎么来的?
解决方法
尝试使用此命令语法:
git push <remote> <local_branch>:<remote_branch_name>
在您的示例中,例如:
git push origin my_sample_branch:develop
,
执行以下命令:
1.先切换分支git switch my_sample_branch
2.设置上游分支git branch -u origin/develop
3.直接推送,它将自动推送到上游分支git push
顺便说一句,您可以通过命令git branch -vv